join/1: respect empty strings (fix #668)

This commit is contained in:
Nicolas Williams committed 2015-01-14 01:32:25 -06:00
1 parent 8b5ff40402
commit 97602456e3
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -327,6 +327,10 @@ join(",","/")
"a,b,c,d"
"a/b/c/d"
[.[]|join("a")]
[[""],["",""],["","",""]]
["","a","aa"]
# Same check for flatten/1
flatten(-1,3,2,1)
[0, [1], [[2]], [[[3]]]]