Skip to content

Instantly share code, notes, and snippets.

@elderica
Created December 24, 2011 03:09
Show Gist options
  • Save elderica/1516102 to your computer and use it in GitHub Desktop.
Save elderica/1516102 to your computer and use it in GitHub Desktop.
再帰の書き方のメモ.正格評価を使い,その場で結果に変換する.作者ujihisa氏(@ujm)
foldl' _ x [] = x
foldl' op x (y:ys) = let !z = x `op` y in foldl' op z ys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment