> (2,4,8...*)[17] 262144 This one genuinely surprised me
My brain immediately reached for the word 'horrifying', with phrases 'terrible consequences' and 'halting problem' soon after, but to each their own.
Unusual Raku Features
11–20 of 166 posts
Re: Unusual Raku Features
#12Re: Unusual Raku Features
#13Wow. Sign me up for leaving the industry before I ever have to maintain a Raku codebase.
Re: Unusual Raku Features
#14It is absolutely mindbending to me that all of this language development has happened on top of Perl, of all things.
Re: Unusual Raku Features
#15> (2,4,8...*)[17] 262144 This one genuinely surprised me
[7] > (1,3,9...*)[4,5]
(81 243)
[8] > (1,3,9...*)[(1..3)]
(3 9 27)
and nestable [0] > (1,2,4...*)[(1,2,4...*)[1,2,3]]Re: Unusual Raku Features
#16I’m not sure this page loaded properly for me, half of it is arbitrary punctuation characters assembled in bizarre nonsensical ways.
Re: Unusual Raku Features
#17> (2, 30, 4, 50).map(* + *) returns (32, 45) Should it be `returns (32, 54)` ? i.e. 4+50 for the 2nd term. Maybe this is a consequence (head translation) of some countries saying e.g. vierenvijftig (four and fifty) instead of the English fifty-four.
Re: Unusual Raku Features
#18I’m not sure this page loaded properly for me, half of it is arbitrary punctuation characters assembled in bizarre nonsensical ways.
Re: Unusual Raku Features
#19I’m not sure this page loaded properly for me, half of it is arbitrary punctuation characters assembled in bizarre nonsensical ways.
Re: Unusual Raku Features
#20 # Does weird things with nested lists too
> [1, [2, 3], 4, 5] > [10, 20]
[11 [22 23] 14 25]
This article makes me feel like I'm watching a Nao Geo/Animal Planet documentary. Beautiful and interesting to see these creatures in the wild? Absolutely. Do I want to keep my distance? As far away as possible.