text clarification from Matthew
svn: r9054
This commit is contained in:
parent
63cf6c73fc
commit
289683eae1
|
@ -369,10 +369,7 @@ same arity as @scheme[proc].
|
||||||
Returns a procedure that is a curried version of @scheme[proc]. When
|
Returns a procedure that is a curried version of @scheme[proc]. When
|
||||||
the resulting procedure is first applied, unless it is given the
|
the resulting procedure is first applied, unless it is given the
|
||||||
maximum number of arguments that it can accept, the result is a
|
maximum number of arguments that it can accept, the result is a
|
||||||
procedure to accept additional arguments. In other words, given a
|
procedure to accept additional arguments.
|
||||||
@scheme[proc] that accepts varying number of arguments, the first
|
|
||||||
application tries to return a procedure waiting for more arguments if
|
|
||||||
possible:
|
|
||||||
|
|
||||||
@examples[#:eval fun-eval
|
@examples[#:eval fun-eval
|
||||||
((curry list) 1 2)
|
((curry list) 1 2)
|
||||||
|
@ -381,11 +378,9 @@ possible:
|
||||||
]
|
]
|
||||||
|
|
||||||
After the first application of the result of @scheme[curry], each
|
After the first application of the result of @scheme[curry], each
|
||||||
further application accumulates arguments until sufficiently many
|
further application accumulates arguments until an acceptable number
|
||||||
arguments have been accumulated, at which point the original
|
of arguments have been accumulated, at which point the original
|
||||||
@scheme[proc] is called. In other words, given a @scheme[proc] that
|
@scheme[proc] is called.
|
||||||
accepts varying numbers of arguments, later applications delay as
|
|
||||||
little as possible:
|
|
||||||
|
|
||||||
@examples[#:eval fun-eval
|
@examples[#:eval fun-eval
|
||||||
(((curry list) 1 2) 3)
|
(((curry list) 1 2) 3)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user