aboutsummaryrefslogtreecommitdiffstats
path: root/examples/maybe.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/maybe.lisp')
-rw-r--r--examples/maybe.lisp10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/maybe.lisp b/examples/maybe.lisp
index 0447139..fe0b418 100644
--- a/examples/maybe.lisp
+++ b/examples/maybe.lisp
@@ -9,10 +9,12 @@
(match seq
[]
(fatal "unsafe-at out of bounds")
- (match n
- 0
- (head seq)
- (unsafe-at (- n 1) (tail seq))))))
+ otherwise
+ (match n
+ 0
+ (head seq)
+ otherwise
+ (unsafe-at (- n 1) (tail seq))))))
(let unpack-just (unsafe-at 2))
(let kind (unsafe-at 1))