2011-03-02から1日間の記事一覧
今日は 7.8 練習問題を解いてみます。1. ((map f) . (filter p)) xs 2. all _ [] = True all f (x:xs) = if f x == False then False else all f xs または all f xs = foldl (&&) True (map f xs) any _ [] = False any f (x:xs) = if f x == True then Tru…
今日は 7.8 練習問題を解いてみます。1. ((map f) . (filter p)) xs 2. all _ [] = True all f (x:xs) = if f x == False then False else all f xs または all f xs = foldl (&&) True (map f xs) any _ [] = False any f (x:xs) = if f x == True then Tru…