Returns a function of smaller arity by partially applying arguments from the right.
function to partially apply
arguments to partially apply
partially applied function
function say( text, name ) {
return text + ', ' + name + '.';
}
var toGrace = papplyRight( say, 'Grace Hopper' );
var str = toGrace( 'Hello' );
// returns 'Hello, Grace Hopper.'
str = toGrace( 'Thank you' );
// returns 'Thank you, Grace Hopper.'
Partially applied function.
function arguments
partially applied function result