Re: ^mro_unhidden

2021-08-21 Thread Vadim Belman
I have tried to explain the essential part of this in a comment to the related issue. Regarding the traits, Elizabeth has mostly covered the subject. Coming down to the `is hidden` trait, neither Any nor Mu are hidden: say Any.^hidden; # 0 And, normally, no other class hides them: say

Re: pairs of separators from a string

2021-08-21 Thread Vadim Belman
I guess you need something like this: my ($a, $b) = { @^a[0,2...Inf], @a[1,3...Inf] }.(q<(){}[]>.comb); say $a; say $b Best regards, Vadim Belman > On Aug 21, 2021, at 3:04 AM, Marc Chantreux wrote: > > hello, > > i would like to get the list of opening (α) and closing > (ω) separators

Re: Depreciated code????

2021-08-21 Thread ToddAndMargo via perl6-users
On 8/21/21 7:34 PM, ToddAndMargo via perl6-users wrote: Hi All, I narrowed it down by processor eli8mination. The offending line is     if  $Code    { $RtnCode   = $proc.status; } I presume what is depreciated is `$proc.status` Anyone know what is wrong with that statement? (I tried to

Re: Depreciated code????

2021-08-21 Thread ToddAndMargo via perl6-users
Hi All, I narrowed it down by processor eli8mination. The offending line is if $Code{ $RtnCode = $proc.status; } I presume what is depreciated is `$proc.status` Anyone know what is wrong with that statement? (I tried to look it up on raku.org, but the web site just went down on

Re: pairs of separators from a string

2021-08-21 Thread yary
This reminds me of "the comma rule" which I haven't quite internalized yet. This gets a little closer map { .[0,2…∞], .[1,3…∞] }, ("012345".comb,) (((0 2 4) (1 3 5))) and my instinct is that "map" is adding a layer you don't need or want for this issue, should just be sending the results of comb

Re: intermixed types and resulting types

2021-08-21 Thread Patrick R. Michaud
On Sat, Aug 21, 2021 at 12:50:21PM -0700, Joseph Brenner wrote: > But then, in a case like this one, how would you know in advance > that it would work, without Just Trying It: > > my @monsters = < godzilla grendel wormface blob >; > my $cool_monsters = < godzilla ghidra mothera >.Set; >

Re: intermixed types and resulting types

2021-08-21 Thread Joseph Brenner
References: In-Reply-To: toddandma...@zoho.com wrote: > If you go to https://docs.raku.org/ and look up your variable, > scroll down and look for "type graph", it will tell you what > your variable is a member of. Yes, that's right. For any particular case, you could check the type graphs

Re: ^mro_unhidden

2021-08-21 Thread Elizabeth Mattijsen
> On 21 Aug 2021, at 20:03, Joseph Brenner wrote: > > Given and example like this: > > class A {} > class B is A {} > class D is B {} > > say D.^parents(); # ((B) (A)) > say D.^parents( :all ); # ((B) (A) (Any) (Mu)) > > So, I conclude that Any and Mu are "hidden" as far as ^parents is

^mro_unhidden

2021-08-21 Thread Joseph Brenner
Given and example like this: class A {} class B is A {} class D is B {} say D.^parents(); # ((B) (A)) say D.^parents( :all ); # ((B) (A) (Any) (Mu)) So, I conclude that Any and Mu are "hidden" as far as ^parents is concerned. According to the documentation, ^mro_unhidden does this:

pairs of separators from a string

2021-08-21 Thread Marc Chantreux
hello, i would like to get the list of opening (α) and closing (ω) separators from this string: &""''(){}[] too many years of perl made me think about this solution or something alike but it didn't work. my (\α,\ω) =| map { .[0,2…∞], .[1,3…∞] }, q&""''(){}[]&.comb; fixing this is