summaryrefslogtreecommitdiff
path: root/tests/arr1.bth
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-26 19:27:42 +0100
committerubq323 <ubq323@ubq323.website>2024-06-26 19:27:42 +0100
commit2e62b41072738142dea9f0b5dd5d2d22455c7616 (patch)
treef47ce547de39fb69b02eb70990c9485489f1e574 /tests/arr1.bth
parent6deeb9630d4b4e7d672ab851dcd4fe3d0d3d2865 (diff)
add arrays, appending, getting length, indexing
Diffstat (limited to 'tests/arr1.bth')
-rw-r--r--tests/arr1.bth9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/arr1.bth b/tests/arr1.bth
new file mode 100644
index 0000000..0d06759
--- /dev/null
+++ b/tests/arr1.bth
@@ -0,0 +1,9 @@
+(set A (arr))
+(say A)
+(say (len A))
+(append A 10)
+(append A 20)
+(append A 30)
+(say A)
+(say (len A))
+(say (A 1))