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 @ten = ^10; .say for @ten.classify(&so), @ten.classify(&{+]); |
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 @ten = ^10; .say for @ten.classify(&so), @ten.classify(.&{+]); |
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 \sig = :(Int $a, Str $b); proto f(*@, *%) { if (|@, |%).Capture ~~ sig { say "matched" } }; f 1, "foo" # hhh |
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 \sig = :(Int $a, Str $b); proto f(*@, *%) { if (|@, |%).Capture ~~ sig { say "matched" } }; f 1, "foo"' |
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-07T20:54:37Z #raku <wayland76> librasteve I actually already have most of the code, I just have one part that I'd like to do in Tree-Oriented Programming. I won't need the whole Tree-Oriented Programming thing, just the first part (the XPath-like part), but that's about the 4th thing on my list at the moment. |
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
package Flip { enum coin is export <heads tails>; }; import Flip; multi MAIN(:$a) { $a.WHAT.say }; multi MAIN(coin(Str) :$a) { say $a }; MAIN(a => 'heads' |
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
.say for lines |
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
next |
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
use Zef::CLI; say MAIN(<<search 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
2025-05-04T10:27:32Z #raku-dev <finanalyst> ugexe is there a way to discover which distribution/location `CompUnit::RepositoryRegistry.run-script("run-locally")` is pointing at? I moved the script run-locally when I spun a Cro related script into a new distribution, but now I cant get rid of the old one. |