You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lish/lish/core.lsh

13 lines
213 B

(do
;; This is lish core
;; increment
(def inc (fn [x] (+ x 1)))
;; map
(def map (fn [f lst]
(if (empty? lst)
[]
(cons (f (first lst))
(map f (rest lst))))))
)