fix bug in join

This commit is contained in:
Scott Richmond 2024-06-11 17:19:01 -04:00
parent a9190995da
commit eadd6e8047

View File

@ -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