mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 11:09:54 +00:00
Update lazyseq example.
This commit is contained in:
parent
82e5d915f7
commit
93f6bb856f
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user