purescript-nonempty
purescript-nonempty copied to clipboard
Add `last :: forall f a. NonEmpty f a -> a` ?
O(N)
I don't think it's possible to implement that? You'd need a Foldable constraint on f or something like that.
last :: forall f a. Foldable f => NonEmpty f a -> a would be useful.