[Haskell-cafe] nested maybes

Bulat Ziganshin bulat.ziganshin at gmail.com
Mon Feb 5 05:48:49 EST 2007


Hello J.,

Sunday, February 4, 2007, 11:46:57 PM, you wrote:

> exists s wmap = isJust $ find (==s) . snd =<< Map.lookup (sort s) wmap

exists s wmap =      Map.lookup (sort s) wmap
                >>== snd
                >>== find (==s)
                >>== isJust

a>>==b = a>>=return.b





-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list