From 93ddcc744b91cf1bf3550024e9b8c9fd80c2571b Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 12 Oct 2014 18:04:29 -0700 Subject: 144 --- mu.arc.t | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mu.arc.t') 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 -- cgit 1.4.1-2-gfad0