1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-19 09:38:28 +03:00

ps: Fix result of (concat [1 2]), so it returns a list not a vector.

This commit is contained in:
Ben Harris 2019-05-07 22:04:28 +01:00
parent 737e676bbb
commit 4bfde8229c

View File

@ -97,7 +97,9 @@ end } def
dup _count 0 eq { %if just concat
pop 0 _list
}{ dup _count 1 eq { %elseif concat of single item
0 _nth % noop
0 _nth dup _vector? { %if vector
/data get _list_from_array
} if
}{ % else
[] exch
/data get {