Returns a function that applies function to curried-args plus its own arguments, with the curried-args occurring last.
rcurry (“right” curry) operates just like curry, except it allows the rightmost arguments of function to be specified in advance, rather than the leftmost arguments. For example, rcurry(\>, 6) is a predicate that returns true for values greater than 6.
define constant number? = rcurry(instance?, <number>)
number?(4)
⇒ #t
number?("string")
⇒ #f
define constant greater-than-10? = rcurry(\>, 10)
greater-than-10?(4)
⇒ #f
| function | An instance of <function>. |
| #rest curried-args | Instances of <object>. |
| new-function | An instance of <function>. |