Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
-- 複数の引数を取る関数を合成
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
You can’t perform that action at this time.