Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gfldex/perl6-rakudo-slippy-semilists
implement postcircumfix:<|| > to allow coercion of Array to semilist
https://github.com/gfldex/perl6-rakudo-slippy-semilists
Last synced: 28 days ago
JSON representation
implement postcircumfix:<|| > to allow coercion of Array to semilist
- Host: GitHub
- URL: https://github.com/gfldex/perl6-rakudo-slippy-semilists
- Owner: gfldex
- Created: 2016-08-12T19:01:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-08-03T17:23:21.000Z (over 4 years ago)
- Last Synced: 2024-11-06T05:44:08.081Z (3 months ago)
- Language: Raku
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rakudo::Slippy::Semilist
[![Build Status](https://travis-ci.org/gfldex/perl6-rakudo-slippy-semilists.svg?branch=master)](https://travis-ci.org/gfldex/perl6-rakudo-slippy-semilists)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»
```