
18 Jul
2014
18 Jul
'14
5:23 p.m.
Am 18.07.2014 23:19, schrieb David Feuer:
What I'd like for Data.List is
uncons :: [a] -> Maybe (a, [a]). uncons [] = Nothing uncons (a:as) = Just (a,as)
I believe Data.Text and maybe even Data.ByteString have similar functions.
I called it viewL, analogously to Data.Sequence: http://hackage.haskell.org/package/utility-ht-0.0.10/docs/Data-List-HT.html#...