blob: b7142b79c0d8c3fbb95a5a9576935de0db50d14e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
@(define fun (x y))
@(bind x "x")
@y
@y
@y
@(end)
@(next :list '("a" "a" "a" "b" "c"))
@{z (fun x "a")}
@(require (equal x "x"))
@(require (equal z '("a" "a" "a")))
@(define fun2 (x y))@(bind x "x")@y@(end)
@(next :string "ab")
@{w (fun2 x "a")}@y
@(require (equal w "a"))
@(require (equal y "b"))
@(next :list '("a" "a" "a" "b" "c"))
@(bind d ("d"))
@(cases)
@ {d (fun "x" "a")}
@(or)
@ (require "get here")
@(end)
@(next :string "ab")
@(cases)
@ {d (fun2 "x" "a")}
@(or)
@ (require "get here")
@(end)
|