purescript-deprecated/purescript-maps

fromList/toList confusingly named

Closed this issue · 3 comments

These functions take and return arrays respectively. Shouldn't they be called fromArray and toArray?

Good point, as we call it Data.Array not Data.List too.

I think this can be closed, since the types have changed in the newest version:

toList :: forall k v. Map k v -> List (Tuple k v)
fromList :: forall k v. (Ord k) => List (Tuple k v) -> Map k v

👍