PasteRack.org
Paste # 48955
2014-10-01 13:11:55

Fork as a new paste.

Paste viewed 30 times.


Embed:

Function in a variable called with multiple arguments.

  1. #lang racket
  2.  
  3. (define (f x y z)
  4.   (+ x y z))
  5.  
  6. (define y f)
  7.  
  8. (y 1 2 3)

=>

6