Re: CALL-ME vs. Callable

[email protected] (Brandon Allbery) Mon, 14 Nov 2016 17:04:53 -0500
Newsgroups perl.perl6.language
Message-ID <CAKFCL4XQPb0zky4amkJkNqZ-QeRjQoH4u+xoTxv-EQMfYMCbKA@mail.gmail.com>
On Mon, Nov 14, 2016 at 5:00 PM, Jon Lang <[email protected]> wrote:

> So what is the assuming method, and why is it in a callable role? What was
> the logic behind that decision?


It's perfectly sensible: it's how you implement partial application (which
as sadly usual is mis-called "currying"). &some-callable.assuming(foo) is a
callable (and a Callable; note however that some-callable is not
necessarily a Callable!) which, when invoked, invokes
some-callable(foo, <*parameters
to invocation here*>).


-- 
brandon s allbery kf8nh                               sine nomine associates
[email protected]                                  [email protected]
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net