File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ImportArray
2+ extensions [ array ]
3+ globals [ ar1 temp ]
4+ O> set ar1 array:from-list [ 1 2 3 4 "string" false ]
5+ O> set temp (word "tmp/array/test-file-" __nano-time ".csv")
6+ O> export-world temp
7+ O> set ar1 0
8+ O> import-world temp
9+ array:to-list ar1 => [1 2 3 4 "string" false]
10+
11+ ImportArraysSameArray
12+ extensions [ array ]
13+ globals [ ar1 ar2 temp ]
14+ O> set ar1 array:from-list [ 1 2 3 ]
15+ O> set ar2 ar1
16+ O> set temp (word "tmp/array/test-file-" __nano-time ".csv")
17+ O> export-world temp
18+ O> set ar1 0
19+ O> set ar2 0
20+ O> import-world temp
21+ O> array:set ar1 2 4
22+ array:to-list ar2 => [1 2 4]
23+
24+ ImportArraysTwoArrays
25+ extensions [ array ]
26+ globals [ ar1 ar2 temp ]
27+ O> set ar1 array:from-list [ 1 2 3 ]
28+ O> set ar2 array:from-list [ 1 2 3 ]
29+ O> set temp (word "tmp/array/test-file-" __nano-time ".csv")
30+ O> export-world temp
31+ O> set ar1 0
32+ O> set ar2 0
33+ O> import-world temp
34+ O> array:set ar1 2 4
35+ array:to-list ar1 => [1 2 4]
36+ array:to-list ar2 => [1 2 3]
37+
38+ ImportArrayInsideArray
39+ extensions [ array ]
40+ globals [ ar1 temp ]
41+ O> set ar1 array:from-list [ array:from-list [ 5 ] ]
42+ O> set temp (word "tmp/array/test-file-" __nano-time ".csv")
43+ O> export-world temp
44+ O> set ar1 0
45+ O> import-world temp
46+ array:to-list array:item ar1 0 => [ 5 ]
47+
148ArraysBug716a
249 extensions [array]
350 globals [glob1 glob2]
You can’t perform that action at this time.
0 commit comments