src/classes/Junction.pir - Perl 6 Junction and related functions
- perl()
Return perl representation.
(This should actually be autothreaded.)
- true()
Evaluate Junction as a boolean.
- ACCEPTS
Smart-matching for junctions,
short-circuiting.
- !type()
Return the type of the Junction.
- !eigenstates()
Return the components of the Junction.
- !DISPATCH_JUNCTION
Does a junctional dispatch.
XXX Needs to support named args.
- !DISPATCH_JUNCTION_SINGLE
Wrapper for junction dispatcher in the single dispatch case,
where we are passed the sub that is being called along with a way to build tuples of the parameters for the dispatcher.
- !DISPATCH_JUNCTION_MULTI
Wrapper for junction dispatcher in the multi dispatch case.
Here we are handed back as the thingy to call in place of a candidate,
and PCC doesn't give us an easy way to unshift another argument into the call,
so we have it attached as a property.
- any(),
infix:<|>()
- one(),
infix:<^>()
- all(),
infix:<&>()
- none()
- infix:<~~>