1
0
mirror of https://github.com/janet-lang/janet synced 2025-08-05 05:23:49 +00:00

Fix bug with false literals as keys not printing.

This commit is contained in:
Calvin Rose 2018-04-02 16:10:16 -04:00
parent 534c936e14
commit 8b9bd41205

View File

@ -602,7 +602,7 @@ in the same manner, and so on. Useful for expressing pipelines of data."
[x] [x]
(def arr @[]) (def arr @[])
(var k (next x nil)) (var k (next x nil))
(while k (while (not= nil k)
(array-push arr k) (array-push arr k)
(:= k (next x k))) (:= k (next x k)))
arr) arr)
@ -612,7 +612,7 @@ in the same manner, and so on. Useful for expressing pipelines of data."
[x] [x]
(def arr @[]) (def arr @[])
(var k (next x nil)) (var k (next x nil))
(while k (while (not= nil k)
(array-push arr (get x k)) (array-push arr (get x k))
(:= k (next x k))) (:= k (next x k)))
arr) arr)
@ -622,7 +622,7 @@ in the same manner, and so on. Useful for expressing pipelines of data."
[x] [x]
(def arr @[]) (def arr @[])
(var k (next x nil)) (var k (next x nil))
(while k (while (not= nil k)
(array-push arr (tuple k (get x k))) (array-push arr (tuple k (get x k)))
(:= k (next x k))) (:= k (next x k)))
arr) arr)