On 10/12/19 3:08 AM, William Michels via perl6-users wrote:
Inline:
On Fri, Oct 11, 2019 at 8:33 PM ToddAndMargo via perl6-users
wrote:
On 10/11/19 8:09 PM, William Michels via perl6-users wrote:
Hi Todd, Per the REPL, $x looks to be a List:
mbook:~ homedir$ perl6
To exit type 'exit' or '^D
Inline:
On Fri, Oct 11, 2019 at 8:33 PM ToddAndMargo via perl6-users
wrote:
>
> On 10/11/19 8:09 PM, William Michels via perl6-users wrote:
> > Hi Todd, Per the REPL, $x looks to be a List:
> >
> > mbook:~ homedir$ perl6
> > To exit type 'exit' or '^D'
> >>
> >> my $x = (44,66)
> > (44 66)
> >> s
On 10/11/19 8:09 PM, William Michels via perl6-users wrote:
Hi Todd, Per the REPL, $x looks to be a List:
mbook:~ homedir$ perl6
To exit type 'exit' or '^D'
my $x = (44,66)
(44 66)
say $x.WHAT
(List)
say $x.^name
List
my $y = < 55 77 >
(55 77)
say $y.WHAT
(List)
say $y.^name
List
Hi Todd, Per the REPL, $x looks to be a List:
mbook:~ homedir$ perl6
To exit type 'exit' or '^D'
>
> my $x = (44,66)
(44 66)
> say $x.WHAT
(List)
> say $x.^name
List
>
> my $y = < 55 77 >
(55 77)
> say $y.WHAT
(List)
> say $y.^name
List
>
> say $*VM
moar (2019.07.1)
HTH, Bill.
On Fri, Oct 11, 2
On 10/11/19 2:46 AM, William Michels via perl6-users wrote:
Below works:
mbook:~ homedir$ perl6 -e 'my $x = (44, 66); say $x; say $x.any < 43'
(44 66)
any(False, False)
#
mbook:~ homedir$ perl6 -e 'my $x = (44, 66); say $x; say $x.any < 50'
(44 66)
any(True, False)
#
mbook:~ homedir$ perl6 -e 'm
Below works:
mbook:~ homedir$ perl6 -e 'my $x = (44, 66); say $x; say $x.any < 43'
(44 66)
any(False, False)
#
mbook:~ homedir$ perl6 -e 'my $x = (44, 66); say $x; say $x.any < 50'
(44 66)
any(True, False)
#
mbook:~ homedir$ perl6 -e 'my $x=0; my $any=2|4|8; $x==$any ?? put "x
exists, value= $x" !
On 10/8/19 10:53 AM, Brad Gilbert wrote:
Most operations with Junctions produce Junctions.
> 1 + any(2, 3)
any(3, 4)
$ p6 'say 4 + any(44,66);'
any(48, 70)
Sweet! But what would you ever use it for?
Would this be the intended use: add a number to all
values in an array?
$ p6 '
Thank you very much Brad!!
Let's redirect all conversation on this particular issue here:
https://github.com/rakudo/rakudo/issues/3221
Best Regards, Bill.
On Tue, Oct 8, 2019 at 10:53 AM Brad Gilbert wrote:
>
> Most operations with Junctions produce Junctions.
>
> > 1 + any(2, 3)
> any
Most operations with Junctions produce Junctions.
> 1 + any(2, 3)
any(3, 4)
> any(1, 2) + 3
any(4, 5)
> any() ~~ /./
any(「a」, 「c」)
In the case of the following line, `$/` gets assigned a junction of the
results.
> if any(@genus) ~~ m/Hama/ { put "Matches at least on
Greetings:
I tried the following regular expression code, working generally from
"Learning Perl 6" by brian d foy (Chapter 15). Everything works fine
including the any() junction below, as long as the topic $_ variable
isn't defined beforehand. However specifically in combination with a
user-defin
10 matches
Mail list logo