[Haskell-beginners] best way to code this

briand at aracnet.com briand at aracnet.com
Sun May 31 05:14:44 UTC 2015


On Sun, 31 May 2015 11:47:01 +1000
Lyndon Maydwell <maydwell at gmail.com> wrote:

> I think you're looking for `mapMaybe` :-)
> 
> 

yes. yes i am. lol.

i even had the Maybe module open and just didn't get all the way to the end.

although after looking at my problem, i realized i need to save those elements of the list that weren't matched.

that makes it slightly more complicated.  but i did find partition which works nicely.

thanks!


Brian


More information about the Beginners mailing list