about summary refs log tree commit diff stats
path: root/mu.arc.t
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2014-10-12 18:04:29 -0700
committerKartik K. Agaram <vc@akkartik.com>2014-10-14 10:02:18 -0700
commit93ddcc744b91cf1bf3550024e9b8c9fd80c2571b (patch)
treee01304f0795c41b6652ec1861a832d75bf7ab34c /mu.arc.t
parent1bfb7c1090f96b6d5bf8ac1a13aee0af7f34bfa1 (diff)
downloadmu-93ddcc744b91cf1bf3550024e9b8c9fd80c2571b.tar.gz
144
Diffstat (limited to 'mu.arc.t')
-rw-r--r--mu.arc.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/mu.arc.t b/mu.arc.t
index 68759fe2..09f851a6 100644
--- a/mu.arc.t
+++ b/mu.arc.t
@@ -718,6 +718,13 @@
             (~is memory*.9 (+ second 1))
             (~is (memory* (+ second 1)) t)))
     (prn "F - 'list' constructs a heterogeneous list, which can contain elements of different types")))
+(add-fns
+  '((test2
+      ((10 list-address) <- list-next (1 list-address)))))
+(run 'test2)
+;? (prn memory*)
+(if (~is memory*.10 memory*.6)
+  (prn "F - 'list-next can move a list pointer to the next node"))
 
 ; Just like the table of types is centralized, functions are conceptualized as
 ; a centralized table of operations just like the 'primitives' we've seen so