Advertisement
Hppavilion1

Function Composition in LispRule (for λ-nomic)

Jan 3rd, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. (:= "."
  2. (func (comb "f" "g") // `comb` produces a list, akin to R's `c`
  3. (func (accepts g) // `accepts` gets the arguments that its argument function accepts
  4. (f (apply g (args))) // args is a variable that represents the args passed to the current function
  5. )
  6. )
  7. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement