aboutsummaryrefslogtreecommitdiff
path: root/example.tsl
diff options
context:
space:
mode:
Diffstat (limited to 'example.tsl')
-rwxr-xr-xexample.tsl13
1 files changed, 11 insertions, 2 deletions
diff --git a/example.tsl b/example.tsl
index eb92e0e..861db41 100755
--- a/example.tsl
+++ b/example.tsl
@@ -41,9 +41,10 @@ list_index_value = value5[0]
# loadn 1
# loadn 2
-# list 2
+# loadv "list_index_value"
+# list 3
# setv "list1"
-list1 = [1, 2]
+list1 = [1, 2, list_index_value]
# loadn 3
# loadn 4
@@ -65,6 +66,14 @@ list3 = list1 + list2
# setv "value6"
value6 = {"hello": "world", "value": 23}
+# loads "hello"
+# loads "world"
+# loads "value"
+# loadn 23
+# map 4
+# setv "value6_1"
+value6_1 = {hello: "world", value: 23}
+
# loadf 1 // loadf1 begins at once, because the file body itself is function 0
# setv "value7"
value7 = fn () {}