implement postcircumfix:<|| > to allow coercion of Array to semilist
Perl 6
Switch branches/tags
Nothing to show
Latest commit 3cfd298 Apr 30, 2017 @gfldex committed on GitHub Merge pull request #3 from samcv/license-SPDX
Use SPDX identifier in license field of META6.json
Permalink
Failed to load latest commit information.
example
lib/Rakudo/Slippy speed up :exists a bit and implement :exists for literals Aug 12, 2016
t
.travis.yml travis with zef Aug 12, 2016
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␤»