Skip to content
implement postcircumfix:<|| > to allow coercion of Array to semilist
Other
  1. Other 100.0%
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
lib/Rakudo/Slippy
t
.travis.yml
META6.json
README.md

README.md

Rakudo::Slippy::Semilist

Build Status

Implements postcircumfix:<{|| }> to allow coercion of Array to semilist. Implements postcircumfix:<{; }>:exists and postcircumfix:<{|| }>. see: http://design.perl6.org/S09.html#line_419

Usage:

use Rakudo::Slippy::Semilist;

my @a = 1,2,3;
my %h;
%h{||@a} = 42;
dd %h;
# OUTPUT«Hash %h = {"1" => ${"2" => ${"3" => 1}}}␤»
dd %h{1;2;3}:exists;
# OUTPUT«Bool::True␤»
You can’t perform that action at this time.