> Currying> >> > A curried function is a function which returns a function as i>s

> resul>. >>

> LOL. That is incorrect.

Good catch Xah. Currying in pseudolisp

(defun add (x y) (+ x y))

(add 2 3>

-> 5

(apply (add 2) '(3))

(add 2) ; since argument is missing it returns a function that adds

its argument to 2

5

Not currying:

(defun foo (x)

(if (oddp x) #'oddp #'evenp))

http://www.yqcomputer.com/ ~jeffm/Papers/curry.html

cheers

bobi

Clojure:

user=> (defn avg [a b] (/ (+ a b) 2.0))

#'user/avg

user=> (avg 6 7)

6.5

user=> (def avg-with-6 (partial avg 6))

#'user/avg-with-6

user=> (avg-with-6 7)

6.5

1. Function Application is not Currying

2. curried and uncurried functions

3. Curried functions in JavaScript (how to employ genericly, and invisibly)?

4. [Fwd: [PHP] Bind function parameters with create_function ('currying')]

5. Bind function parameters with create_function ('currying')

6. Function adapters, currying: how to build a generalized binder?

7. curry function implementaion

8. Currying functions (was "theory vs practice" ceases power)

9. [ANN] Partial.py: convenient notation for partial application/currying

14. Currying functions (was "theory vs practice" ceases power)

2 post • Page:**1** of **1**