This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2025-05-28T13:51:49Z #raku-dev <ugexe> finanalyst a new method is fine too if that is was i originally recommended. a provides-docs (not doc-provides since the meta/distribution data is providing doc data). then CURI.install(...) needs to understand that provides-docs field and data and then place all the files where they need to go, rename them, precompile them, etc. in other words the heavy lifting is done in rakudo, not zef. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum prio <low med high>; sub sort-jobs(@jobs) { @jobs.sort({ $^b<prio> <=> $^a<prio> || $^a<submit> <=> $^b<submit> }) }; my @jobs = do for ^20 { %(prio => prio.roll, submit => (^10).roll) }; .say for @jobs.&sort-jobs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum prio <low med high>; sub sort-jobs(@jobs) { @jobs.sort({ -.<prio>, .<submit> }) }; my @jobs = do for ^20 { %(prio => prio.roll, submit => (^10).roll) }; .say for @jobs.&sort-jobs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
weekly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
raku -e ' $_ = "ab ac ad ae af"; m:g/ (a.) { $0.say } / andthen $/.Str; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my $lines = (xmul(2,4)%&mul[3,7]!@^do_not_mul(5,5)+mul(32,64]then(mul(11,8)mul(8,5))); my $p1; for $lines { m:g/'mul('(\d+)','(\d+)')' {$p1 += $0*$1}/ }; say $p1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g/mul( (\d+), (\d+) ) {$sum += $0 * $1}/ (basically and without the quoting) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
weekly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2025-08-08T00:37:35Z #raku <SmokeMachine> librasteve_ I made a change on Red, and now you can use functions receiving 2 parameters to do the polymorphic stuff... it will use the join-model internally... I still need some ironing on the code, but here is the MR: https://github.com/FCO/Red/pull/585 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
weekly |
NewerOlder