1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-24 17:27:18 +00:00

Update lazyseq example.

This commit is contained in:
Calvin Rose 2018-03-18 09:18:53 -04:00
parent 82e5d915f7
commit 93f6bb856f

View File

@ -35,7 +35,8 @@ that was memoized."
(defn cons
"Create a new sequence by prepending a value to the original sequence."
[h t]
(delay (tuple h t)))
(def x (tuple h t))
(fn [] x))
(defn empty?
"Check if a sequence is empty."