User Tools

Site Tools


script:walkthrough:records

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
script:walkthrough:records [2019-11-23 21:38]
skyjake
script:walkthrough:records [2019-11-23 21:38] (current)
skyjake
Line 31: Line 31:
  
 ''​Record()''​ also accepts a dictionary as argument. In this case, the keys of the dictionary become variables in the newly created record. ''​Record()''​ also accepts a dictionary as argument. In this case, the keys of the dictionary become variables in the newly created record.
 +
 +  Record({'​a':​ 1, '​b':​ 2})
  
 ''​record''​ may also be used as an expression, to create a subrecord in the current scope. In this example, //myrec// is created in the local namespace. On the second line //subexp// is created inside //myrec// because it appears after the member operator. ''​record''​ may also be used as an expression, to create a subrecord in the current scope. In this example, //myrec// is created in the local namespace. On the second line //subexp// is created inside //myrec// because it appears after the member operator.
script/walkthrough/records.txt ยท Last modified: 2019-11-23 21:38 by skyjake