[Haskell-cafe] Problems interpreting

Neil Mitchell ndmitchell at gmail.com
Mon Sep 18 07:25:21 EDT 2006


Hi

>           check_elem (x:xs) = if x == e then (l2 ++ xs) else [x] ++ check_elem xs

Why not:
>           check_elem (x:xs) = if x == e then (l2 ++ xs) else x : check_elem xs

Thanks

Neil


More information about the Haskell-Cafe mailing list