Skip to content

Commit 6c3d942

Browse files
committed
Merge branch 'master' of github.com:lambda-llama/icfpc2014
2 parents 173b714 + 9c08caa commit 6c3d942

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tosexp/src/tosexp/core.clj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
(defn transform [form]
66
(match
77
[(if (list? form) (vec form) form)]
8+
89
[['+ a b]] (list 'Add (transform a) (transform b))
9-
[(a :guard #(number? %))] (list 'Const a)
10+
[(a :guard number?)] (list 'Const a)
1011
))
1112

1213
(defn mytest []
13-
(let []
14-
'(+ 1 2)))
14+
(transform
15+
'(+ 1 2)))
1516

1617
(defn foo
1718
"I don't do a whole lot."

0 commit comments

Comments
 (0)