fix bug in join
This commit is contained in:
parent
a9190995da
commit
eadd6e8047
|
@ -332,6 +332,7 @@ fn join {
|
|||
([]) -> ""
|
||||
([str as :string]) -> str
|
||||
(strs as :list) -> join (strs, "")
|
||||
([str], separator as :string) -> str
|
||||
([str, ...strs], separator as :string) -> fold (
|
||||
fn (joined, to_join) -> concat (joined, separator, to_join)
|
||||
strs
|
||||
|
|
Loading…
Reference in New Issue
Block a user