Skip to content

Instantly share code, notes, and snippets.

@moznion
Created July 29, 2012 12:55
Show Gist options
  • Save moznion/3198529 to your computer and use it in GitHub Desktop.
Save moznion/3198529 to your computer and use it in GitHub Desktop.
スタートHaskell 2 第2回目演習 ポイントフリースタイル
f :: Int -> Int
f = (1+) . (2*)
g :: Int -> Int -> Int
g = (+) . (2*)
h :: Int -> [a] -> [a]
h = (fst .) . splitAt
i :: Ix a => (a,a) -> [a]
i = id . range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment