[Haskell-cafe] Haskell function help

Carsten Schultz carsten at codimi.de
Tue Feb 1 23:13:44 CET 2011


Am 01.02.11 22:17, schrieb Houdini:
> 
> How about this...?
> assign :: (Atom,Bool) -> Formula -> Formula
> assign (a,b) = map . (map f) where
>    f (x,b) = (x,(x==a)&&b)

How about testing it?




More information about the Haskell-Cafe mailing list