DEV Community

Discussion on: Perl Weekly Challenge in Raku : Week 55

Collapse
 
lizmat profile image
Elizabeth Mattijsen

You can actually get even more declarative in some of the is-wave candidates:

multi sub is-wave( 'gte', Int $a, Int $b where { $a < $b } --> False ) { }         

This also gives the optimizer more to go on.

Collapse
 
scimon profile image
Simon Proctor

I tried a couple of other methods later. I'll maybe blog about them soon.