I ran into this while making map support currying(#10) - it looks like unique is omitting 0 from the resulting array. I check contains thinking that may be the problem but it seems to handle 0 just fine. Looking at this now but wanted to ensure it is documented, so creating an issue for it.
Ok, this is actually a bug in the contains method - it always returns true for 0 which causes unique to omit the value regardless of it's existence in the return array.
I ran into this while making
map
support currying(#10) - it looks likeunique
is omitting 0 from the resulting array. I checkcontains
thinking that may be the problem but it seems to handle 0 just fine. Looking at this now but wanted to ensure it is documented, so creating an issue for it.