Sorry,

I do not understand what you are saying to me.

I know that init produces a Maybe [a] . That is why I did put a Just before it.
When I do init' (x:xs) = Maybe (x: (init' xs)) I see this message : 
src/Main.hs@5:16-5:21
Not in scope: data constructor
Maybe


Brandon Allbery schreef op 12-5-2015 om 16:03:
On Tue, May 12, 2015 at 10:00 AM, Roelof Wobben <r.wobben@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@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net


_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners




Avast logo

Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
www.avast.com