require
This commit is contained in:
parent
efe548cfa5
commit
89079016c2
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
(do
|
||||
;; This is lish core
|
||||
|
||||
(def require (fn [x] (eval (str "(do " (cat x) ")"))))
|
||||
|
||||
;; increment
|
||||
(def inc (fn [x] (+ x 1)))
|
||||
|
||||
|
@ -9,5 +10,4 @@
|
|||
(if (empty? lst)
|
||||
[]
|
||||
(cons (f (first lst))
|
||||
(map f (rest lst))))))
|
||||
)
|
||||
(map f (rest lst))))))
|
Loading…
Reference in a new issue