Haskell/Solutions/更多关于函数
外观
练习 |
---|
|
map (\x -> x * 2 + 3) xs
foldr (\x y -> read x + y) 1 xs
(\x -> 4 + x) :: Int -> Int
(\xs -> elem 1 xs) :: [Int] -> Bool
(\c -> notElem c "abc") :: Char -> Bool
练习 |
---|
|
map (\x -> x * 2 + 3) xs
foldr (\x y -> read x + y) 1 xs
(\x -> 4 + x) :: Int -> Int
(\xs -> elem 1 xs) :: [Int] -> Bool
(\c -> notElem c "abc") :: Char -> Bool