purescript/purescript-enums

upFromIncluding :: ∀ a u. Enum a => Unfoldable u => a -> NonEmpty u a

safareli opened this issue · 2 comments

Thoughts on adding this?

upFromIncluding ::  a u. Enum a => Unfoldable u => a -> NonEmpty u a
upFromIncluding x = NonEmpty x $ upFrom x
paf31 commented

👍 I'm surprised upFrom x doesn't start at x actually.

I'm surprised upFrom x doesn't start at x actually.

Yes that was not expecting for me too. but this way upFromIncluding has much correct type :d