1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-25 22:53:16 +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]
(def arr @[])
(var k (next x nil))
(while k
(while (not= nil k)
(array-push arr k)
(:= k (next x k)))
arr)
@ -612,7 +612,7 @@ in the same manner, and so on. Useful for expressing pipelines of data."
[x]
(def arr @[])
(var k (next x nil))
(while k
(while (not= nil k)
(array-push arr (get x k))
(:= k (next x k)))
arr)
@ -622,7 +622,7 @@ in the same manner, and so on. Useful for expressing pipelines of data."
[x]
(def arr @[])
(var k (next x nil))
(while k
(while (not= nil k)
(array-push arr (tuple k (get x k)))
(:= k (next x k)))
arr)