Created
April 2, 2014 14:35
-
-
Save kurogelee/9935441 to your computer and use it in GitHub Desktop.
Clojureでreduceをbreakする方法 ref: http://qiita.com/kurogelee/items/be71b35d96b6e6b0660b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user=> (reduce #(if (< 9999 %1) (reduced %1) (* %1 %2)) (range 1 10000)) | |
40320 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment