add `index :: forall a f. Foldable => f a -> Int -> Maybe a`
Closed this issue · 1 comments
safareli commented
If you want to get first element from some foldable you would do find (const true) but if we had index we could grab nth value from foldable and the expression above could be written like index 0 which is nicer I think. do others think that it would be a nice addition? if not why?
paf31 commented
👍 Sounds useful