On 2020-01-20 14:17, Tobias Boege wrote:
This is a truly beautiful and thoughtful thing about Raku.
The more I learn about Raku, the more it astounds me.
It is so well thought out, it is mesmerizing.
:-)
On 2020-01-20 14:17, Tobias Boege wrote:
^ is a junction constructor, specifically it creates a one() junction.
If you want bitwise XOR use the... bitwise XOR operator +^.
I left off the +.
Mumble, mumble
:'(
On Mon, Jan 20, 2020 at 3:57 PM ToddAndMargo via perl6-users
mailto:perl6-us...@perl.org>> wrote:
Hi All,
Now what am I doing wrong?
my $v = 0b00101101 ^ 0b1001; say $v.base(2);
one(101101, 1001)
It should be
100100
Many thanks,
-T
On
Why would you think that?
The numeric binary xor operator is +^.
my $v = 0b00101101 +^ 0b1001; say $v.base(2);
# 100100
^ is the junctive xor operator.
my $v = 1 ^ 2 ^ 'a';
$v eq 'a'; # True
$v == 1; # True
$v == 2; # True
$v == 3; # False
There is also the stringy binar
On Mon, 20 Jan 2020, ToddAndMargo via perl6-users wrote:
> Hi All,
>
> Now what am I doing wrong?
>
> my $v = 0b00101101 ^ 0b1001; say $v.base(2);
> one(101101, 1001)
>
> It should be
> 100100
>
Please examine the output you get. Does the spurious "one" in there not
make you ra
Hi All,
Now what am I doing wrong?
my $v = 0b00101101 ^ 0b1001; say $v.base(2);
one(101101, 1001)
It should be
100100
Many thanks,
-T