[Haskell-beginners] another type problem

Brandon Allbery allbery.b at gmail.com
Tue May 12 14:03:33 UTC 2015


On Tue, May 12, 2015 at 10:00 AM, Roelof Wobben <r.wobben at home.nl> wrote:

> init' (x:xs) = Just (x: (init' xs))
>

Remember that your init' produces Maybe [a], not [a].

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150512/4eedcb39/attachment.html>


More information about the Beginners mailing list