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
|
;; This is lish core
|
||||||
|
|
||||||
|
(def require (fn [x] (eval (str "(do " (cat x) ")"))))
|
||||||
|
|
||||||
;; increment
|
;; increment
|
||||||
(def inc (fn [x] (+ x 1)))
|
(def inc (fn [x] (+ x 1)))
|
||||||
|
|
||||||
|
@ -10,4 +11,3 @@
|
||||||
[]
|
[]
|
||||||
(cons (f (first lst))
|
(cons (f (first lst))
|
||||||
(map f (rest lst))))))
|
(map f (rest lst))))))
|
||||||
)
|
|
Loading…
Reference in a new issue