Description Usage Arguments Value Note See Also Examples
The partial
function and the %><%
operator allows you to
partially call a function with a list of arguments. Named elements in the
list will be matched to function arguments and these arguments will be
removed from the returned function. Unnamed elements are only allowed for
functions containing an ellipsis, in which case they are considered part of
the ellipsis.
1 2 3 |
fun |
A function to be partially applied. Can be any function (normal, already partially applied, primitives). |
args |
A list of values that should be applied to the function. |
A function with the same arguments as fun
except for the ones
given in args
Multiple partial application does not result in multiple nested calls, so while the first partial call adds a layer around the called function, potentially adding a very small performance hit, partially calling multiple times will not add to this effect.
Other partials: curry
,
tail_curry
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.