
25 Oct
2008
25 Oct
'08
1:20 p.m.
Glurk, "(.) . (.)" seems to do it: dorsey@elwood:~$ ghci GHCi, version 6.8.3: http://www.haskell.org/ghc/ :? for help Loading package base ... linking ... done. Prelude> let (...) = (.) . (.) Prelude> let matches x xs = [ m | m <- xs, x == m ] Prelude> :t length ... matches length ... matches :: (Eq a) => a -> [a] -> Int Prelude> Regards, John