recent perl6 book

2020-07-20 Thread Warren Pang
Greetings, Would you suggest a recent release of perl6 book? I took a look here: https://perl6book.com/ They seem out of date, most were published before 2018. Thank you.

Re: doing an inner join via cross-product

2020-07-20 Thread Bruce Gray
> On Jul 19, 2020, at 3:02 PM, Joseph Brenner wrote: > > I was thinking about the cross-product operator the other day, > and I was wondering if there might be a convenient way of > filtering the resulting cartesian product to do something like a > database inner join: > >my @level = (

Re: I cannot install any lib with Zef

2020-07-20 Thread Aureliano Guedes
Thanks, I checked it out. now it is working But now I'm getting issues to install zef install Jupyter::Kernel, the issue itself is on Digest::SHA256::Native:ver<0.03> installation. $ zef install "Digest::SHA256::Native:ver<0.03>" --force-build --force-test > ===> Searching for:

Re: doing an inner join via cross-product

2020-07-20 Thread Aureliano Guedes
With a dataframe data structure and some adjusts and some functions modifications it could be doing like: data1 .# perhaps the space after . is intentional to bring the idea of pipes replace f(x) with x . f() left_join(data2, by={ x =

Re: I cannot install any lib with Zef

2020-07-20 Thread JJ Merelo
El lun., 20 jul. 2020 a las 18:03, Aureliano Guedes (< guedes.aureli...@gmail.com>) escribió: > Hi all, > > I'm trying to figure out why I cannot install any package with zef. > > $ raku --version > This is Rakudo version 2020.06 built on MoarVM version 2020.06 > implementing Raku 6.d. > > zef

I cannot install any lib with Zef

2020-07-20 Thread Aureliano Guedes
Hi all, I'm trying to figure out why I cannot install any package with zef. $ raku --version This is Rakudo version 2020.06 built on MoarVM version 2020.06 implementing Raku 6.d. zef install Acme::Insult::Lala ===SORRY!=== No candidate found for 'zef' that match your criteria. Did you perhaps

Re: subs and the type system

2020-07-20 Thread Tobias Boege
On Mon, 20 Jul 2020, Gianni Ceccarelli wrote: > Aside: > > ``(sub (Int $ --> Int) {}) ~~ Walkable`` is false, because > ``:(Int $ --> Int) ~~ :(Numeric $ --> Numeric)`` is false, which is > correct because function subtypes should be contravariant in the parameter > types and covariant in the

Re: subs and the type system

2020-07-20 Thread Gianni Ceccarelli
On Mon, 20 Jul 2020 14:00:33 +0200 Tobias Boege wrote: > You cannot write `Walkable ` in the signature of because the > combination of a type and the &-sigil apparently means that `` > should be Callable and return a Walkable. That's why I use the > $-sigil. Aha! That's the bit I got wrong,

Re: subs and the type system

2020-07-20 Thread Theo van den Heuvel
Thanks Gianni and Tobias, This is very helpful. One minor follow-up. If I define by signature like this: my $sgn-walkable = :(Numeric $n --> Numeric); I could not define Walkable subs like this, could I? my Walkable $crawlback = ... Thanks, Theo Tobias Boege schreef op 2020-07-20 14:00:

Re: subs and the type system

2020-07-20 Thread Tobias Boege
On Mon, 20 Jul 2020, Theo van den Heuvel wrote: > Hi gurus, > > after looking at the documentation on Sub, Signature and the raku type > system I find myself unable to constrain the types of functions in the way I > think I need. > > The situation: I have a function, let's call in 'walker',

Re: subs and the type system

2020-07-20 Thread Gianni Ceccarelli
On Mon, 20 Jul 2020 12:37:33 +0200 Theo van den Heuvel wrote: > The situation: I have a function, let's call in 'walker', whose first > parameter is a callback. > I wish to express that only callbacks with a certain Signature and > return type are acceptable. > Let's say the callback should

subs and the type system

2020-07-20 Thread Theo van den Heuvel
Hi gurus, after looking at the documentation on Sub, Signature and the raku type system I find myself unable to constrain the types of functions in the way I think I need. The situation: I have a function, let's call in 'walker', whose first parameter is a callback. I wish to express that