Skip to content

Instantly share code, notes, and snippets.

@shigemk2
Created February 4, 2015 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shigemk2/54cb94faeaddbe3adf09 to your computer and use it in GitHub Desktop.
Save shigemk2/54cb94faeaddbe3adf09 to your computer and use it in GitHub Desktop.
-- 複数の引数を取る関数を合成
main = do
print $ sum (replicate 5 (max 6.7 8.9))
print $ (sum . replicate 5) (max 6.7 8.9)
print $ sum . replicate 5 $ max 6.7 8.9
-- print $ sum . replicate 5 . max 6.7 8.9 -- これは無理
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment