0 Replies - 1236 Views - Last Post: 13 December 2009 - 09:17 AM

#1 YamNad   User is offline

  • D.I.C Head
  • member icon

Reputation: 9
  • View blog
  • Posts: 120
  • Joined: 11-July 09

[Lisp] Clojure: Factorial

Posted 13 December 2009 - 09:17 AM

Description: user> (take 10 factorials) ;; => (1 2 6 24 120 720 5040 40320 362880 3628800)
(def factorials (reductions * (iterate inc 1)))

Is This A Good Question/Topic? 0
  • +

Page 1 of 1