[Haskell-cafe] Haskell function help

Houdini andressocrates90 at yahoo.com
Tue Feb 1 22:17:31 CET 2011


How about this...?
assign :: (Atom,Bool) -> Formula -> Formula
assign (a,b) = map . (map f) where
   f (x,b) = (x,(x==a)&&b)
-- 
View this message in context: http://haskell.1045720.n5.nabble.com/Haskell-function-help-tp3365994p3366965.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.



More information about the Haskell-Cafe mailing list