What does `:_` and/or `:_:` signify?

2023-09-24 Thread William Michels via perl6-users
Hello, While playing around in an attempt to define new operators, I stumbled upon some curious results. In the REPL, trying `say :_` returns a blank line. In the REPL, trying `say :_:` returns `_ => True`. What is the meaning of this? admin@mbp ~ % raku Welcome to Rakudo™ v2023.05. Impleme

RE: What does `:_` and/or `:_:` signify?

2023-09-24 Thread Polgár Márton
Hi Bill, :_ is a Pair with the colon syntax that stands for "_" => True. In the first case, it got passed as a named argument and say ignored it. The second case was a method call using the colon syntax - the syntax lizmat challenged not so long ago. https://github.com/Raku/problem-solving/iss