bool-extras released
Ever found yourself in need of a if-then-else replacement that can be partially applied? Something you can pass to higher order functions? In short, ever needed this function?
bool :: a -> a -> Bool -> a
bool x _ False = x
bool _ y True = y
Well, I did. So I’m very happy to announce my first public Haskell library: bool-extras!
This entry was posted
on Wednesday, May 13th, 2009 at 10:25 and is filed under Haskell, Libraries.
You can follow any responses to this entry through the RSS 2.0 feed.