• List

    From Mark Carroll@21:1/5 to All on Sat Apr 16 12:46:56 2016
    On 16 Apr 2016, pip7k wrote:

    I tried the following without success..

    isGood :: String -> Bool
    isGood (x:_) = x <= 'M'
    isGood _ = False

    myList = ["Apple","Fruit","Pears","Misc"]
    aa = map (isGood) $ map (head) myList

    Did you simply want,

    aa = map isGood myList

    ...?

    -- Mark

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)