Skip to content

Commit

Permalink
Adding comment of groovy function I'll be converting. EOM
Browse files Browse the repository at this point in the history
  • Loading branch information
timvisher committed Apr 12, 2012
1 parent 18cd1dd commit 695bcfa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ft3/product-currying/src/product_currying/core.clj
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
;; def product = { x, y -> return x * y }

;; def quadrate = product.curry(4)
;; def octate = product.curry(8)

;; println "4x4: ${quadrate.call(4)}"
;; println "5x8: ${octate(5)}"

(ns product-currying.core)

0 comments on commit 695bcfa

Please sign in to comment.