Operators
Infixes, prefixes, metaoperators, adverbs, and user-declared operators.
233 rules from 160 tests. 145 of those tests are confirmed on both engines: Raku++ and Rakudo 2026.11 both pass, or Raku++ gives Rakudo's answer on every probe of a family. The verdict is the test's, not each rule's. How to read a case.
operator-shortcutsRaku++ matches Rakudo on 44 of 47 probes- 1
A user operator (a multi candidate, a lexical
&infix:<op>, a prefix or postfix sub) is used by every form of that operator, including a curry, a reduce and an assigning form. - 2
A curried, reduced or assigning form of an operator keeps the type the plain operator gives a tagged value such as a Duration or an enum.
smartmatch-metaRaku++ matches Rakudo on 48 of 73 probes- 2
~~against a Callable calls it under every meta-operator and for every kind of Callable.
6e-gatingRaku++ passesRakudo cannot run it- 24
From 6.e prefix
//is.defined.under 6.e
//42is True and//Anyis False
More from this test: Dates & times (2), Exceptions & control flow (1), Hashes & sets (3), I/O & processes (2), Lists & laziness (8), Numerics (1), Classes, roles & the MOP (2), Everything else (2), Regexes & grammars (2), Scoping & phasers (2), Signatures & dispatch (1), Strings & Unicode (6), divergences (1).
adverb-goes-to-tight-operatorRaku++ passesRakudo passes- 1
A subscript adverb ending the operand of an operator tighter than item assignment belongs to that operator: short-circuit, chaining and ternary operators and
xxrefuse it at compile time (X::Syntax::Adverb), other built-ins have no candidate taking it (X::Multi::NoMatchwhen called), and a user infix receives it as a named argument. - 2
Parentheses around the subscript, or an operator looser than item assignment, keep an adverb on the subscript.
andthen-topic-typed-variableRaku++ passesRakudo passes- 1
andthen,orelseandnotandthenbind$_to the left-hand variable's own container, so an assignment to$_on the right is type-checked against that variable's type.my Int $x = 1; $x andthen $_ = "s"dies "Type check failed in assignment to $x; expected Int but got Str ("s")"
angle-words-nest-by-characterRaku++ passesRakudo passes- 3
».^namecalls the meta-method on the list itself, once.».^nameon a List isList
More from this test: Syntax & parsing (2).
anton-batch-2026-09-12Raku++ passesRakudo passes- 2
$obj ~~ "text"isStr.ACCEPTS, which compares the string with the topic's.Str, so an object with its ownmethod Strsmartmatches the string that method returns. inferredclass P { method Str { "pval" } }; P.new ~~ 'pval'isTrue
More from this test: Containers & assignment (1), Syntax & parsing (1).
any-identityRaku++ passesRakudo passes- 1
An untyped, unassigned variable is identical to the
Anytype object under===.my $x; $x === Anyis True
atomic-callables-and-unicode-minusRaku++ passesRakudo passes- 1
The atomic subtract-assign operator is accepted with the Unicode minus U+2212, as
⚛−=. - 2
The atomic operators exist as callables:
&prefix:<⚛>,&prefix:<++⚛>,&prefix:<--⚛>,&postfix:<⚛++>and&postfix:<⚛-->.
More from this test: divergences (1).
audited-language-gaps-1Raku++ passesRakudo passes- 7
@a».*manswers an Array.
More from this test: Concurrency (1), Containers & assignment (1), Exceptions & control flow (1), Hashes & sets (1), Lists & laziness (2), Regexes & grammars (2), Signatures & dispatch (3), Syntax & parsing (2).
audited-language-gaps-2Raku++ passesRakudo passes- 11
++on a non-container expression isX::Multi::NoMatch.(1 + 2)++is X::Multi::NoMatch
More from this test: Compile-time errors (2), Containers & assignment (1), Dates & times (1), Lists & laziness (3), Regexes & grammars (2), Strings & Unicode (2), Types & coercion (1).
batch11-parse-clusterRaku++ passesRakudo passes- 6
!=:=is the negated container-identity operator. inferred$a !=:= $bis true for two distinct variables
More from this test: Regexes & grammars (2), Signatures & dispatch (1), Syntax & parsing (3).
batch2-twin-consolidationRaku++ passesRakudo cannot run it- 1
A reduction with a chaining comparison is true only when every adjacent pair satisfies the operator.
[<] 3,1,2is False
More from this test: Lists & laziness (1), divergences (1).
battery-regressions-v5Raku++ passesRakudo passes- 9
A user
infix:<×>does not take over*, sosub infix:<×>($a, $b) { $a * $b }does not recurse.
More from this test: Hashes & sets (1), I/O & processes (1), Modules (2), Classes, roles & the MOP (1), Regexes & grammars (1), Signatures & dispatch (2).
binding-is-a-list-operationRaku++ passesRakudo passes- 1
:=binds at list precedence, whatever the target's sigil, and is looser than the zip and cross infixes.my $b := 1, 2binds the List(1, 2);my $s := 2..* Z* 2..*binds the whole zip
More from this test: Lists & laziness (1).
binding-slots-ops-create-invocantRaku++ passesRakudo passes- 3
A lexical
&infix:<op>such as a parameter&infix:<cmp>shadows the built-in operator of that spelling, including inside a WhateverCode like* cmp *. - 4
A declared
sub infix:<op>takes part in the operator's multi dispatch instead of shadowing it, so arguments its candidates do not accept still reach the built-in.with a Complex-only
infix:<gcd>declared,12 gcd 18still uses the Int candidate
More from this test: Containers & assignment (2), Classes, roles & the MOP (3).
blob-numeric-and-zip-metaopRaku++ passesRakudo passes- 3
Z[op]is the zip metaoperator with a bracketed operator, not a reduction of the right operand. inferred(1,2,3) Z[+] (10,20,30)zips the two lists with+
More from this test: Hashes & sets (1), Lists & laziness (1), Types & coercion (2).
bson-simple-and-hash-agnosticRaku++ passesRakudo passes- 2
The operand of a user-defined circumfix operator is a term, not an argument list: a Pair between the brackets arrives as a positional value, and empty brackets pass one empty list.
⦃ hello => 'world' ⦄hands the operator one positional Pair
More from this test: Containers & assignment (4), Dates & times (1), Hashes & sets (1), Modules (1), Classes, roles & the MOP (2), Signatures & dispatch (2), Stringification (1), Strings & Unicode (1), Types & coercion (1).
buffer-concat-keeps-typeRaku++ passesRakudo passes- 1
~and~=of two buffers of one type give that type, and of any other two a plain Buf.utf8 ~ utf8 is a utf8, Blob ~ Blob a Blob, a Buf beside a Buf[uint8] a Buf, and a utf16 beside another buffer a Buf
builtin-operator-called-by-nameRaku++ passesRakudo passes- 1
A built-in operator called by its name is that operator applied.
prefix:<->(3),prefix:<so>(1),postfix:<++>(my $y = 1)andpostcircumfix:<[ ]>((1,2,3), 1)all work - 2
A built-in postfix operator called by name keeps its operand's container, so the variable steps.
More from this test: Syntax & parsing (1).
c-style-ternary-refusedRaku++ passesRakudo passes- 2
A user-declared
infix:<?>keeps its meaning, and so does every?that is not in infix position.
More from this test: Compile-time errors (1).
callable-as-infixRaku++ passesRakudo passes- 1
A [&f] Buses a Callable as an infix operator, with additive precedence and left associativity.$current [&($op)] 1applies$opto the two operands
callsame-reaches-builtin-operatorRaku++ passesRakudo passes- 1
A redispatch (
callsame) from the last user candidate of a built-in operator reaches the built-in.multi infix:<*>(UInt $a, UInt $b) { callsame() mod $m }multiplies with the core*
cat-assign-user-infixRaku++ passesRakudo times out- 1
$s ~= Xand$s = $s ~ Xcall a user-declaredinfix:<~>for the operands its signature is narrower for, inside a loop or outside one.
cat-user-candidate-object-operandRaku++ passesRakudo passes- 1
Infix
~written out dispatches to a usermulti infix:<~>candidate over an object or an enum operand.Rt.new ~ 1with an(Rt, Int)candidate is the candidate's answer, notRt<…>1
class-range-spaces-set-identity-aliasRaku++ passesRakudo passes- 2
≡is set equality, the same as(==), and not===.(1,2) ≡ (2,1)is True
More from this test: Containers & assignment (1), Regexes & grammars (1), Syntax & parsing (1).
clone-semanticsRaku++ passesRakudo passes- 7
=:=compares container identity, never contents, whatever the operands are.@a.clone =:= @ais False;[1,2] =:= @ais False
More from this test: Containers & assignment (1), Classes, roles & the MOP (4), Scoping & phasers (1).
code-accepts-and-regex-callableRaku++ passesRakudo passes- 1
.ACCEPTSon a Callable calls it with the topic:$matcher.ACCEPTS($name)is$matcher($name).
More from this test: Signatures & dispatch (1), Types & coercion (2).
comma-assign-metaopRaku++ passesRakudo passes- 1
A ,= Bis alwaysA = A, B: the comma applied to the two operands and the result assigned with whatever that assignment means for A's container.%h ,= 5 => 4grows the hash
complex-words-order-and-allomorph-newRaku++ passesRakudo passes- 2
cmpbetween a Complex and a plain Str compares them as strings, andbefore/afteragree with thatcmp."abc" cmp <0+0i>is notSame
More from this test: Numerics (1), Types & coercion (1).
compose-cross-placeholderRaku++ passesRakudo passes- 1
∘(ASCIIo) is looser than all arithmetic operators.&abs ∘ * - 5composes&abswith the WhateverCode* - 5 - 2
A bracketed cross metaoperator may hold a reversed operator, as in
16 X[R%] .... - 3
With
Xxxthe left side ofxxis thunked: each replication re-evaluates it, and the replications group element-major. - 4
Postfix
++or--on an undefined variable returns the type's zero.my $x; $x++returns 0 and leaves$xat 1
More from this test: Scoping & phasers (1).
conformance-list-adverbsRaku++ passesRakudo passes- 7
&infix:«OP»is the guillemet spelling of&infix:<OP>.
More from this test: Lists & laziness (6), Types & coercion (1).
data-generators-clusterRaku++ passesRakudo passes- 3
A Junction topic in a smartmatch collapses to a Bool, except against a regex, which yields a junction of Matches.
More from this test: Lists & laziness (3), Types & coercion (1).
digest-bigint-and-native-clusterRaku++ passesRakudo passes- 2
Prefix
+^is-(x+1), exact at any width.+^0xF123456789ABCDEFis-17375808098319191536
More from this test: Containers & assignment (1), Signatures & dispatch (3).
digest-native-widths-clusterRaku++ passesRakudo passes- 1
~^,~|and~&on two buffers return a buffer of the left operand's type.Buf.new(65,66) ~^ Buf.new(1,1)isBuf.new(64,67);Blob ~^ Bufis a Blob - 2
A string bitwise operator mixing a Str with a Buf dies.
'AB' ~^ Buf.new(1,1)dies
More from this test: Containers & assignment (2), Lists & laziness (2), Numerics (4), Scoping & phasers (1).
dispatch-cache-builtin-answersRaku++ passesRakudo passes- 2
When user
multi infix:<gcd>candidates do not take the operands, the built-in operator answers.with six
infix:<gcd>candidates and none for two Ints,$_ gcd $nis the built-in's answer
dist-suite-quartetRaku++ passesRakudo passes- 4
eqvandis-deeplycompare objects structurally, so a clone iseqvits source.$a.clone eqv $ais True
More from this test: Dates & times (1), Exceptions & control flow (1), I/O & processes (1), Classes, roles & the MOP (4), Everything else (1), Regexes & grammars (2), Scoping & phasers (1), Signatures & dispatch (2), Stringification (1), Syntax & parsing (3), Types & coercion (2).
divergence-result-typesRaku++ passesRakudo passes- 1
<=>,cmp,legandunicmpreturn anOrdervalue, which is Int-backed. inferred(1 <=> 2) === Order::Lessand(1 <=> 2).Intis-1 - 6
notandthenwith a defined left side yieldsEmpty, aSlip. inferred(1 notandthen 2).^nameisSlip
More from this test: Lists & laziness (3), Numerics (3), Types & coercion (1).
eco-blockers-2026-09-14Raku++ passesRakudo passes- 7
An object that delegates
Numeric, as inhas FatRat $.f handles <Numeric>, numifies through it for the numeric comparison operators. - 8
A number on the right of
~~is a matcher:Numeric.ACCEPTSnumifies the topic and compares numerically.
More from this test: Exceptions & control flow (1), I/O & processes (2), Signatures & dispatch (1), Stringification (1), Syntax & parsing (2).
ecosweep-2026-09Raku++ passesRakudo passes- 8
* => 1and"a" => *are WhateverCodes, whilea => *with a bareword key stays a Pair.
More from this test: I/O & processes (2), Modules (3), Classes, roles & the MOP (1), Scoping & phasers (2), Signatures & dispatch (1), Types & coercion (1).
ecosweep-900-batchRaku++ passesRakudo passes- 4
WhateverCodes built from prefix operators such as
~*honour an object's user-definedmethod Strormethod Bool. - 13
The string comparison operators
eq,ne,ltand the rest compare an object by its ownmethod Str.
More from this test: Containers & assignment (1), I/O & processes (1), Lists & laziness (4), Numerics (1), Regexes & grammars (1), Signatures & dispatch (2), Stringification (1), Syntax & parsing (1).
ecosweep-batch-fiveRaku++ passesRakudo passes- 11
Capture equivalence ignores the order of named arguments.
\(1, :a, :b) eqv \(1, :b, :a)is True
More from this test: Hashes & sets (1), Native types & NativeCall (2), Classes, roles & the MOP (2), Regexes & grammars (1), Scoping & phasers (2), Signatures & dispatch (4), Syntax & parsing (1), Types & coercion (2).
eqv-list-vs-arrayRaku++ passesRakudo passes- 1
eqvis type-aware: two values of different types are nevereqv, however equal their contents.(1,2) eqv [1,2]is FalseAlso held by
is-deeply-strict-and-anton-batch.
exe-module-closure-lexicalsRaku++ passesRakudo passes- 2
In
.map(|*.list)the*curries the whole|*.list, so the argument is the WhateverCode{ |.list }and not a slip of one.
exe-nested-class-nativeRaku++ passesRakudo passes- 2
$x ~~ EXPRevaluates EXPR with$_set to$x, not to the outer topic. inferredAlso held by
exe-nested.
More from this test: Lists & laziness (1), Stringification (1).
exe-reverse-word-metaopRaku++ passesRakudo passes- 2
Every
Rmetaoperator reverses again, so a doubledRrestores the operator.RRcmpiscmp
feed-into-prefix-operatorRaku++ passesRakudo does not passflipflop-and-exclusive-seqRaku++ passesRakudo passes- 1
While on, a flip-flop (
ff,fff) evaluates to anIntrun counter, never aBool. - 2
A
^on either end of a flip-flop excludes that edge element from the result, though the element still counts in the run. - 3
fffdoes not test its right-hand side on the element that switched it on. - 4
^...and^...^are forms of the sequence operator that exclude the seed. - 5
doesrequires a role on its right ando/∘require Callables, so1 does 2and1 o 2are errors.
flipflop-and-nil-termRaku++ passesRakudo passes- 2
^ff,ff^and^ff^are single flip-flop operators; the carets are not prefixes or postfixes on the operands. - 3
A flip-flop evaluates to
Nilwhile off.
More from this test: Hashes & sets (1), Syntax & parsing (1).
flipflop-regex-operands-exclusiveRaku++ passesRakudo passes- 1
A regex literal is a term, so a caret-decorated flip-flop such as
^fff^after a smartmatch against a regex is read as the operator.$l ~~ /^^ \s* '=begin tomty'/ ^fff^ $l ~~ /^^ \s* '=end tomty'/compiles
for-over-slice-aliasesRaku++ passesRakudo passes- 2
The dotted hyper postfix
@a[^2]».++increments the slice's elements in place, as»++does.
More from this test: Containers & assignment (1), divergences (1).
grand-review-c1-interpRaku++ passesRakudo passes- 11
"a" x Infis refused with an exception."a" x Infdies - 14
[...]reduces with the real sequence operator.([...] 1, 3, 9).join(",")is1,2,3,4,5,6,7,8,9 - 15
[&&]over an empty list is True.[&&] ()is True - 18
The hyper pair constructor
>>=><<keeps a non-Str key as it is instead of stringifying it.((1, 2) >>=><< (3, 4))[0].key.^nameisInt
More from this test: Containers & assignment (1), Exceptions & control flow (3), I/O & processes (1), Numerics (7), Scoping & phasers (4), Signatures & dispatch (3), Stringification (1), Strings & Unicode (1).
hash-map-pair-semantics-sheetRaku++ passesRakudo passes- 12
An Associative topic smartmatched against a Hash or Map is compared
eqv, entry for entry and type included, while a Str topic is a key test and a list topic an any-key test. inferred%(a => 1, b => 2) ~~ %(a => 1)isFalse;"a" ~~ %hisTruewhen%hhas key a - 24
Pair.ACCEPTSwith a Pair topic matches the keys and smartmatches the topic's value against the matcher's value. inferred(a => 1) ~~ (a => Int)isTrue;(a => Int) ~~ (a => 1)isFalse - 25
Pair.ACCEPTSwith an Associative topic looks the Pair's key up and matches the value found; with any other topic it calls the key as a method and compares truthiness, throwing X::Method::NotFound when no such method exists. inferred"abc" ~~ (chars => 3)isTrue;42 ~~ (is-prime => False)isTrue - 26
A Pair topic smartmatched against a Hash is looked up by its Str, not compared as an entry. inferred
(a => 1) ~~ %(a => 1)isFalse
More from this test: Containers & assignment (3), Hashes & sets (13), Stringification (5), Types & coercion (1).
hyper-ascii-markers-and-shapeRaku++ passesRakudo passes- 1
The Unicode operator aliases (
÷,×,−,≥,≤,≠) work inside ASCII hyper markers as they do inside guillemets.>>÷>>divides elementwise like»÷» - 2
A hyper operator's result mirrors the left operand's shape: an Array gives an Array and a List gives a List.
an Array operand gists
[8 10], a List operand(8 10)
hyper-chains-and-the-m-formRaku++ passesRakudo passes- 1
>>[0]after a term is a hyper subscript, while>>[+]<<is a hyper infix citing an operator.@a>>[0]>>.Strtakes element 0 of each item - 2
>>=><<is a hyper over the fat arrow and keeps the fat arrow's precedence, looser than a..on its left.
More from this test: Regexes & grammars (1).
hyper-compound-assignRaku++ passesRakudo passes- 1
A hyper metaop over a compound assignment,
@a <<+=>> n, applies the base operator elementwise and mutates the array in place.
hyper-in-whatevercodeRaku++ passesRakudo passes- 1
A hyper method call inside a WhateverCode hypers over the elements, exactly as in the block form.
@groups.map(*.forms».lang)behaves like@groups.map({ .forms».lang })
hyper-invoke-keeps-shapeRaku++ passesRakudo passeshyper-metaop-precedenceRaku++ passesRakudo passes- 1
A hyper metaoperator takes the precedence of the operator inside it.
(2,2) >>+<< (3,3) >>*<< (4,4)is(14 14)
hyper-numeric-kernelsRaku++ passesRakudo passes- 2
Under a hyper operator each element pair follows the plain operator's rules: an Int result that overflows 64 bits stays exact, Int divided by Int is a Rat, a zero divisor gives a Failure, and nested lists, typed or native arrays and a shadowed operator are honoured. inferred
hyper-reduce-one-operandRaku++ passesRakudo passeshyperwhateverRaku++ passesRakudo passes- 2
In a list smartmatch pattern,
**matches a run of zero or more elements.(1, 2, 4, 8) ~~ (1, **, 8)is TrueAlso held by
itemization-and-list-folds.
More from this test: Syntax & parsing (1).
imported-operator-traitsRaku++ passesRakudo passes- 1
An operator imported from a module keeps its precedence and associativity traits (
is assoc,is equiv,is tighter,is looser).1 ⊗⊗ 2 ⊗⊗ 3with an importedis assoc<right>operator nests right - 2
The short operator reference in a trait,
is equiv(&[**]), gives the operator that precedence. - 3
A
subthat declares a built-in operator spelling such as(&)or(|)with traits is parsed with the declared traits, not as the built-in set operator.
increment-steps-as-succRaku++ passesRakudo passes- 1
++and--are.succand.pred: a Str steps as a string, a Bool saturates, and a class's ownsuccis called.$s++on "aa" gives "ab"
is-deeply-strict-and-anton-batchRaku++ passesRakudo passes- 3
A hyper infix result takes its container type from its list operands: scalar
<<+>>Array is an Array, scalar<<+>>List a List, List>>+>>Array a List, and a hyper over hashes keeps the hash's type.(3 <<+>> (1,2)).WHAT.^nameisList - 4
A hyper method call does not descend for a nodal method such as
.elems, reaches the leaves for a non-nodal one such as.Str, and over a Hash keeps the keys.[[1,2],[3,4]]>>.elemsis(2, 2);{a=>1,b=>2}>>.Stris{:a("1"), :b("2")} - 11
.=assigns across a parenthesised list target, and on an@variable it stores an Array.my ($x, $y) = 'one', 'two'; ($x, $y) .= reverseleavestwoandone
More from this test: Hashes & sets (1), I/O & processes (3), Lists & laziness (1), Classes, roles & the MOP (3), Everything else (1), Regexes & grammars (2), Signatures & dispatch (1), Syntax & parsing (2).
issue-113-seq-infinite-endpointsRaku++ passesRakudo passes- 1
A sequence
...against-Infis unbounded downwards: a lone seed steps by.pred, where*andInfstep by.succ.3 ... -Infis 3 2 1 0 … - 2
Seeds already moving away from the endpoint never reach it, and the sequence is empty.
1, 3 ... -Infis empty, as5, 3 ... 10is - 3
^...skips only the seed of a lazy sequence and the rest still generates.3 ^... *is not empty, and1, *+1 ^... *calls its generator with the previous value
issue34-hyper-hash-subscriptRaku++ passesRakudo passes- 1
A hyper marker followed immediately by
<key>or{EXPR}is a hyper hash subscript.@working»<done>reads<done>from each element
itemization-and-list-foldsRaku++ passesRakudo passes- 4
legcompares its operands as strings, even numeric ones.-4 leg -1isMorewhere-4 cmp -1isLess - 6
In a list smartmatch pattern,
*matches exactly one element.
More from this test: Containers & assignment (1), Lists & laziness (3), Numerics (1), Regexes & grammars (1), Stringification (1).
itemized-argument-is-one-itemRaku++ passesRakudo passes- 2
The meta-operators
[Z]and[X]flatten a List held in a$variable.
More from this test: Containers & assignment (2), Lists & laziness (3).
js-backend-fixes-2026-10-11Raku++ passesRakudo passes- 2
A hyper method call answers a List when the method is nodal and keeps the invocant's Array when it is not. inferred
for
my @c = [1, 2], [3],@c».elemsis a List; formy @a = 1, -2,@a».absis an Array
More from this test: Containers & assignment (2), Lists & laziness (2).
js-backend-framework-clusterRaku++ passesRakudo passes- 9
* => Trueas an argument Whatever-curries over the whole pair and yields a Callable, while an ordinary pair argument is not a curry. inferred
More from this test: Scoping & phasers (2), Signatures & dispatch (1), Strings & Unicode (1), Syntax & parsing (2), Types & coercion (1).
json-fast-clusterRaku++ passesRakudo does not pass- 9
A hyper operator may wrap a user-defined infix.
with
multi sub infix:<=~=>(Int \l, Int \r) { l == r },(1,2,3) »=~=« (1,2,4)is(True, True, False)
More from this test: Containers & assignment (1), Numerics (1), Signatures & dispatch (1), Strings & Unicode (1), Types & coercion (6).
junction-arg-autothreads-everywhereRaku++ passesRakudo passes- 1
A Junction argument autothreads a method call wherever the call is made from, a WhateverCode included.
*.contains(none '01')answersnone(False), which is true
junction-hyper-method-callRaku++ passesRakudo passes- 1
A hyper method call on a Junction autothreads: each eigenstate gets the hyper call, which gives a one-element list for a scalar, and the answers form a junction of the same kind.
all(@p)».statusisall((Kept), (Kept))
junction-interpolationRaku++ passesRakudo passes- 2
Prefix
~on a Junction autothreads, as the.Strmethod does.
More from this test: Strings & Unicode (1).
lex-shadow-filter-exactRaku++ passesRakudo passes- 2
×,÷,−,≤,≥and≠name operators of their own:&infix:<×>can be bound, shadowed and given candidates apart from&infix:<*>, and only the built-in behind the two names is the same.a
my sub infix:<×>in scope is what×callsAlso held by
unicode-operator-names-apart.
lizmat-nqp-opsRaku++ passesRakudo passes- 4
with,without,//andorelseconsult a user-definedmethod defined.
More from this test: Lists & laziness (1), Numerics (1), Everything else (1), Types & coercion (1).
loose-prefixes-and-listop-adverbsRaku++ passesRakudo passes- 1
soandnotare prefix operators that bind tighter than the comma, not listops that take the whole list.so 1, 2is(so 1), 2, andf(so ($x), 2)passes two arguments
More from this test: Lists & laziness (1), Syntax & parsing (1).
math-sparsematrix-installRaku++ passesRakudo passes- 2
A user-defined
postcircumfix:<[ ]>orpostcircumfix:<[; ]>candidate is called for subscripts on the types it accepts. - 4
A user-defined prefix operator candidate for an object type is called in preference to the built-in prefix of the same name.
-$matrixcalls the user'sprefix:<->instead of numifying the object
More from this test: Lists & laziness (1), Native types & NativeCall (2), Classes, roles & the MOP (1).
metaop-core-operands-user-infixRaku++ passesRakudo passes- 1
A reduce, triangle reduce, zip or cross metaop over core operands uses a user-declared candidate of the operator, as the operator written out does.
with
multi infix:<lcm>(Rat:D, Int:D)declared,[lcm] 2.0, 6takes the candidate, as2.0 lcm 6does
metaop-object-operands-user-infixRaku++ passesRakudo passes- 1
Z+,X+,R+and[+]over object operands consult a usermulti infix:<+>, as the plain infix and the hyper»+»do.(V,) Z+ (V,)is(plus)
More from this test: Signatures & dispatch (1).
method-call-shapes-and-core-tablesRaku++ passesRakudo passes- 1
A superscript power is a postfix that can be written in method form:
2.²,.³on the topic, and it chains left to right.2².³is (2²)³
More from this test: Containers & assignment (1), Numerics (1), Classes, roles & the MOP (9), Strings & Unicode (1), Syntax & parsing (2).
modinfo-ecosystem-clusterRaku++ passesRakudo passes- 12
Smart-matching against an object calls its
ACCEPTSmethod, also when the object is the matcher given to.grep.with
method ACCEPTS($s) { $s.chars > 3 },<abcd ab xyzzy>.grep($m)is("abcd", "xyzzy")
More from this test: Hashes & sets (1), I/O & processes (1), Lists & laziness (1), Regexes & grammars (3), Scoping & phasers (2), Signatures & dispatch (3), Syntax & parsing (7), Types & coercion (1).
module-compat-clusterRaku++ passesRakudo passes- 5
Type objects compare under
=:=: a type is=:=itself and not another type.(Any =:= Any)is True;(L4 =:= Any)is False
More from this test: I/O & processes (1), Classes, roles & the MOP (4), Scoping & phasers (3), Signatures & dispatch (2).
module-unblock-batchRaku++ passesRakudo passes- 4
A subscript on a Junction autothreads over its eigenstates through AT-KEY/AT-POS, user classes with their own AT-KEY included.
@rows.all.<age>is a junction of each row's<age>
More from this test: Exceptions & control flow (1), Signatures & dispatch (1), Types & coercion (1).
multi-nomatch-dispatcher-captureRaku++ passesRakudo passes- 2
A user-declared operator whose candidates do not take core operands leaves those operands to the built-in operator. inferred
More from this test: Exceptions & control flow (1).
native-smartmatch-and-whatever-valuesRaku++ passesRakudo passes- 1
$x ~~ $matcherinvokes a Callable matcher with the topic.200 ~~ (* > 100)isTrue - 2
A regex literal on the left of
~~is the Regex object being tested, not a match against$_./a/ ~~ Callableasks whether the Regex is Callable - 5
A metamodel call or
.WHATon a parenthesized WhateverCode applies to the WhateverCode itself rather than currying further.(* < 1)(0)calls the closure;(* < 1).WHATis the WhateverCode'sAlso held by
whatever-curry-is-syntactic. - 6
A chained comparison containing a written
*curries as one arity-one closure:1 < * < 5is a band predicate.1 < * < 5Also held by
whatever-curry-is-syntactic. - 7
A short-circuit infix between two curried terms hands back one side, so
* > 2 && * < 5is* < 5, a closure of arity one, not one two-argument closure.* > 2 && * < 5is* < 5
More from this test: Exceptions & control flow (1), Types & coercion (3).
negated-reduce-and-blocking-receiveRaku++ passesRakudo times out- 1
The
!negation metaoperator applies to a word infix inside a reduction, as in[!after], while[-x]remains an array literal and[:!a]an array holding a pair.
More from this test: Concurrency (1).
nested-named-alias-and-reverse-commaRaku++ passesRakudo passes- 2
The reverse-comma metaoperator
a R, bgives the list(b, a).
More from this test: Signatures & dispatch (1).
object-cmp-by-stringyRaku++ passesRakudo passes- 1
cmpover objects isa.Stringy cmp b.Stringyunless both sides are Reals: an object isSameas itself, adoes Realoris Intobject compares as its number, and amethod Stringyoutranksmethod Str.
More from this test: Lists & laziness (2).
only-ellipsis-bracketed-infixRaku++ passesRakudo passes- 2
The Unicode ellipsis carries the sequence operator's exclusion markers.
5^…0is5^...0and1…^3is1...^3 - 4
The bracketed infix
A [op] Baccepts any operator, word forms and zip/cross metaoperators included.[max],[div],[Z=>]and[X~]are valid bracketed infixes
More from this test: Hashes & sets (2), Signatures & dispatch (1), Syntax & parsing (1).
op-assign-consults-user-infixRaku++ passesRakudo passes- 1
A compound assignment over core operands consults a user operator candidate, as the operator itself does.
$t += 200besidemulti infix:<+>(Int $a, Int $b where * > 100)is that candidate's answer
op-assign-infix-error-propagatesRaku++ passesRakudo passes- 1
An exception raised inside a user-defined
infix:<OP>reaches the caller ofOP=; the built-in operator is not tried in its place.sub infix:<+>(A $a, $b) { die "boom" }; my $x = A.new; $x += 1dies with boom
operator-as-value-identityRaku++ passesRakudo passesoperator-by-assignmentRaku++ passesRakudo passes- 1
An operator declared by assigning to a code variable,
my &infix:<plus> = sub ($a, $b) {…}, is a real operator exactly assub infix:<plus>($a, $b) {…}is.2 plus 3is5
operator-strictnessRaku++ passesRakudo passes- 1
A non-numeric string operand of the bitwise, repetition and approximate-equality operators throws
X::Str::Numericinstead of counting as 0.
More from this test: Stringification (1), Syntax & parsing (1).
package-relative-namesRaku++ passesRakudo passes- 6
An operator in brackets,
[op], is usable as an infix, and a bracketed metaoperator takes an assignment form such as[R//]=whose target is the left operand.
More from this test: Modules (2), Classes, roles & the MOP (2), Regexes & grammars (1).
pair-as-key-value-and-patternRaku++ passesRakudo passes- 2
$val ~~ :methodcalls that method on$valand tests the result against the pair's value.3 ~~ :is-primeis True, and so is4 ~~ :!is-prime - 3
Smartmatching a
PairorHashagainst aPairis an ordinary value comparison, not a method call.
More from this test: Hashes & sets (1), Stringification (2).
parameterized-decl-bind-posRaku++ passesRakudo passes- 3
A
* cmp *WhateverCode built where&infix:<cmp>is a routine parameter keeps that comparator when it is called after the routine has returned.
More from this test: Containers & assignment (1), Types & coercion (1).
pdf-family-2026-09Raku++ passesRakudo passes- 5
!=~=parses as the negation of=~=.
More from this test: Containers & assignment (8), Exceptions & control flow (1), I/O & processes (1), Lists & laziness (1), Modules (1), Numerics (1), Classes, roles & the MOP (14), Regexes & grammars (3), Scoping & phasers (4), Signatures & dispatch (9), Syntax & parsing (11), Types & coercion (3).
pipe-whatever-curriesRaku++ passesRakudo passes- 1
|*is a Whatever-curry that slips its argument, not an eager slip of the Whatever itself.@aoa.map(|*)flattens one level
postcircumfix-routines-by-nameRaku++ passesRakudo passes- 1
&postcircumfix:<[ ]>and&postcircumfix:<{ }>are routines: called by name or through a variable they subscript, their named arguments are the adverbs, and a third positional is assigned.&postcircumfix:<{ }>(%h, 'a')subscripts%h
qualified-dispatch-and-nil-smartmatchRaku++ passesRakudo passes- 2
$x ~~ Nilis true only forNilitself; a defined but empty hash, list or string does not match.
More from this test: Classes, roles & the MOP (1).
r-metaop-flips-associativityRaku++ passesRakudo passesr-metaop-over-zip-and-crossRaku++ passesRakudo passes- 1
The
Rmetaoperator composes overZandX, reversing the operands of the zip or cross, as an infix (RZ,RZ+,ZR-), in a reduction ([RZ]) and as a routine (&[RZ,]).(1,2) RZ (3,4)zips with its operands reversed
rakudo-t-language-gaps-1Raku++ passesRakudo passes- 1
In
3 ~~ $_the right-hand$_is the outer topic.
More from this test: Compile-time errors (1), Containers & assignment (1), Lists & laziness (1), Classes, roles & the MOP (2), Everything else (1), Regexes & grammars (2), Scoping & phasers (2), Signatures & dispatch (1), Stringification (2), Strings & Unicode (1), Syntax & parsing (1).
rakudo-t-language-gaps-2Raku++ passesRakudo passes- 5
butis a structural infix, so48 but 1 + 2parses with ordinary precedence, andbut R<a b>hands the role the list. - 6
5 but Anyis refused.
More from this test: Compile-time errors (1), Exceptions & control flow (2), Hashes & sets (1), Lists & laziness (2), Regexes & grammars (4), Scoping & phasers (1), Signatures & dispatch (1), Syntax & parsing (1).
rakudo-t-language-gaps-3Raku++ passesRakudo passes- 3
our &infix:<qq> = &cdeclares the operator, and after a term a declared infix word is the operator, not a quote. - 6
A type object's own
ACCEPTSmethod runs for~~.
More from this test: Compile-time errors (2), Containers & assignment (1), Lists & laziness (2), Modules (1), Classes, roles & the MOP (1), Regexes & grammars (1), Scoping & phasers (1), Signatures & dispatch (1), Stringification (1), Syntax & parsing (1).
rakudo-t-language-gaps-4Raku++ passesRakudo passesMore from this test: Compile-time errors (1), Classes, roles & the MOP (3), Regexes & grammars (1), Scoping & phasers (1), Stringification (1).
rakudo-t-language-gaps-6Raku++ passesRakudo passes- 1
A sequence
...seeded with enum values steps by.succ/.pred, in both directions. - 3
A lexical
infix:<..>orinfix:<...>is called for../..., while..^stays the built-in because the longest built-in spelling wins.
More from this test: Lists & laziness (1), Regexes & grammars (1), Syntax & parsing (1).
rakuglaze-round-4Raku++ passesRakudo passes- 5
$n max= *.elemscurries the whole assignment into a WhateverCode.
More from this test: Exceptions & control flow (4), Hashes & sets (2), Lists & laziness (1), Classes, roles & the MOP (1), Scoping & phasers (1), Signatures & dispatch (1), Types & coercion (2).
range-construction-and-membershipRaku++ passesRakudo passes- 6
A string that does not parse as a number does not match a numeric Range.
"raku" ~~ -Inf..InfisFalse
More from this test: Lists & laziness (4), Numerics (2), Types & coercion (1).
range-reduce-excludes-int-minimumRaku++ passesRakudo passes- 1
[max]and[min]over an empty Int Range answer-InfandInf, including a Range whose excluded end is the int64 minimum.[max] 5..^(-9223372036854775808)is-Infand[min]of it isInf
reduce-lone-array-operandRaku++ passesRakudo passes- 1
A reduction over one Array operand takes its elements one level deep, as the single-argument rule says, without flattening further.
[+] [[1,2],[3,4]]is 4
reduce-with-chaining-operatorRaku++ passesRakudo passes- 1
reducewith a built-in chaining comparison chains, as[op]does.reduce &[>], 6, 5, 4is True
roast-last-filesRaku++ passesRakudo passes- 11
A nodal routine in a hyper call (
».elems, asub … is nodal,».Any::elems) answers about each node and does not descend into it. inferred
More from this test: Compile-time errors (1), Containers & assignment (2), Lists & laziness (2), Numerics (3), Classes, roles & the MOP (1), Scoping & phasers (2).
roast-sweep-parseRaku++ passesRakudo does not pass- 3
A user postfix declared
is looserthan a user prefix applies to the prefix's result. inferred
More from this test: Compile-time errors (5), Classes, roles & the MOP (2), Syntax & parsing (1).
roast-sweep-runtimeRaku++ passesRakudo cannot run it- 21
A user infix applied to a parenthesized WhateverCode extends the curry it holds. inferred
- 34
x Infanswers a Failure. inferred - 51
Reducing with an operator declared
is assoc<chain>tests each adjacent pair. inferred - 56
A hyper operation over a Map answers a Map, and over a typed Array keeps the type only while every result fits it. inferred
More from this test: Compile-time errors (4), Concurrency (2), Containers & assignment (2), Exceptions & control flow (2), Hashes & sets (4), I/O & processes (3), Lists & laziness (5), Modules (2), Classes, roles & the MOP (8), Everything else (1), Regexes & grammars (1), Scoping & phasers (14), Stringification (1), Strings & Unicode (1), Types & coercion (3).
routine-precRaku++ passesRakudo passes- 1
.prec,.precedence,.associative,.thunkyand.iffyon an operator's Routine answer that operator's precedence properties.&infix:<+>.precanswers instead of "No such method" - 2
A declared operator's precedence traits copy, tighten (
@=) or loosen (:=) the.precof the operator they name, and the declared operator keeps its own associativity.
scalars-nil-junction-complex-dateRaku++ passesRakudo passes- 2
An allomorph on the right of
~~compares numerically only against a Numeric; against a plain Str it compares its string face."5.0" ~~ <5>compares the strings5.0and5
More from this test: Concurrency (1), Containers & assignment (1), Dates & times (1), Numerics (3), Classes, roles & the MOP (1), Everything else (1), Stringification (1), Syntax & parsing (1), Types & coercion (1).
seq-lol-and-callable-namedRaku++ passesRakudo passes- 1
The sequence operator
...is a list infix, looser than the comma, with list-of-lists semantics.'A'...'Z', 'a'...'z'is one sequence - 2
A hyper method call
»over a Blob visits its elements. - 3
.=with an indirect&subcall assigns the call's result back to the variable. inferred
More from this test: Containers & assignment (2), Lists & laziness (1), Signatures & dispatch (1).
sequence-rat-seedsRaku++ passesRakudo passesset-ops-reduce-max-adverbsRaku++ passesRakudo passes- 2
The reverse metaoperator inside a reduction turns the whole reduction around, not each step.
[R-] 1,2,3is 3-2-1, i.e. 0 - 3
[R,]reverses a list.
More from this test: Hashes & sets (2), Lists & laziness (1).
set-predicate-reduce-chainsRaku++ passesRakudo passes- 1
A set relation reduces as a chain, as a comparison does: no operand or one is vacuously True, and three operands test each adjacent pair.
[⊆] ()is True and[∈] (1,)is True
shift-left-count-is-boundedRaku++ passesRakudo passes- 1
+<refuses a shift count past 2**31 at once with "Error in mp_mul_2d: Value out of range".1 +< 9223372036854775807dies "Error in mp_mul_2d: Value out of range"
sigilless-traits-and-container-assignRaku++ passesRakudo passes- 2
=$=,=@=and=%=are assignment operators that pick item, list or hash assignment semantics explicitly instead of taking them from the target's sigil. - 3
When the sigil of
=$=/=@=/=%=differs from the target's, the value is built per the operator and then stored per the target.my $x =@= (1,2,3)is$[1, 2, 3];my @a =$= (1,2,3)is[(1,2,3),]
More from this test: Syntax & parsing (1).
slip-repeat-whatever-iteratorRaku++ passesRakudo passessmartmatch-reads-a-proxyRaku++ passesRakudo passes- 1
A Proxy on either side of a smartmatch is read through its FETCH before matching.
self ~~ $object.statematches the fetched value whenstatereturns a Proxy
smartmatch-topic-padRaku++ passesRakudo passes- 1
~~binds$_to its left operand only while the right side is evaluated and then restores the previous topic, including when$_is a routine parameter.in
sub handle(Pair:D $_, %_),.keyafter$target ~~ Listis still the Pair's key
string-bitwise-codepointsRaku++ passesRakudo passestls-handshake-chain-and-identityRaku++ passesRakudo passes- 3
===on reference types such as Promise compares identity: two distinct Promises are not===.@writes.grep({ $_ !=== $p })removes only$p - 4
Buf,InstantandDurationvalues compare by identity under===, while an immutableBlobcompares by value.Buf.new(1,2) === Buf.new(1,2)is False - 5
A Capture is a value type under
===.\(1,2) === \(1,2)is True
More from this test: Signatures & dispatch (1), Syntax & parsing (1).
todo-small-divergencesRaku++ passesRakudo passes- 18
A superscript power binds before a following postfix.
More from this test: Concurrency (1), Containers & assignment (2), Lists & laziness (3), Classes, roles & the MOP (2), Regexes & grammars (1), Scoping & phasers (2), Stringification (3), Types & coercion (3).
todo-small-divergences-2026-10-11Raku++ passesRakudo does not pass- 10
A WhateverCode handed to
..through a variable does not curry the range. - 15
A Str joined to a Buf with
~throws X::Buf::AsStr.
More from this test: Containers & assignment (1), Classes, roles & the MOP (2), Scoping & phasers (1), Signatures & dispatch (2), Strings & Unicode (1), Syntax & parsing (3), Types & coercion (4), divergences (1).
top100-four-roots-2026-09-02Raku++ passesRakudo cannot run it- 2
@a.»<key>and@a.»[0]are hyper subscripts, equivalent to@a».<key>and@a».[0].({n => 1}, {n => 2}).»<n>gives1,2
More from this test: Lists & laziness (1), Modules (1), Native types & NativeCall (1), Everything else (1).
tries-with-frequenciesRaku++ passesRakudo passes- 3
Prefix
^curries over a Whatever expression, so^(*-1)in a subscript is a range up to the end minus one.@a[^(*-1)]is everything but the last element - 7
The hyper subscripts
».[0]and».{$k}subscript every element of the list rather than the list itself.
More from this test: Hashes & sets (1), Lists & laziness (2), Classes, roles & the MOP (1), Signatures & dispatch (1).
unclear-reread-fixesRaku++ passesRakudo does not pass- 1
~~under a meta-operator (X~~,Z~~,»~~»,[~~]) or called asinfix:<~~>calls a Callable on its right-hand side, as plain~~does. inferred(1, 2) X~~ -> $ { True }is(True, True)Also held by
smartmatch-meta.
More from this test: Numerics (1), Strings & Unicode (1).
undeclared-operator-nameRaku++ passesRakudo cannot run it- 2
Real operators, their one-argument forms, user-declared operators and metaoperator spellings are callable by their
infix:<…>names.
More from this test: Compile-time errors (1), Syntax & parsing (1).
undefined-array-head-lvalue-empty-matchRaku++ passesRakudo passes- 3
A List on the right of a smartmatch compares element by element, and a non-Positional left side never matches.
Any ~~ Emptyand1 ~~ (1,)are False
More from this test: Containers & assignment (1), Types & coercion (1).
unicode-operator-names-apartRaku++ passesRakudo passes- 2
A compound assignment written with a Unicode operator (
$x ×= 3,@n[0] ×= 5,$v ×= V) calls the user's&infix:<×>shadow ormulti infix:<×>candidate. - 3
A metaoperator finds a user operator by the spelling it was written with:
[×],Z×and»×»call&infix:<×>, while[*],Z*and»*»call&infix:<*>. - 4
The hyper compound assignment
@a »×=» 3multiplies each element in place. inferred
unicode-ops-quadraticRaku++ passesRakudo passes- 1
A user-defined infix with a symbolic name,
sub infix:<±>, is usable as an infix operator. - 3
A Unicode operator alias such as
÷works as the inner operator of a hyper, so»÷»divides elementwise.
More from this test: Syntax & parsing (1).
user-infix-concat-meets-builtinRaku++ passesRakudo passes- 1
A user
multi infix:<~>over core operand types is consulted when~is applied, as for+,eqandx.multi infix:<~>(Str $a, Str $b where "Z")is called for a matching~
user-infix-filter-after-declarationsRaku++ passesRakudo passes- 2
A
multi infix:<+>candidate whose parameters name a class or subset declared after it dispatches by what that type turns out to be. inferred
user-infix-multi-over-coreRaku++ passesRakudo passes- 1
A user
multi infix:<op>over core operand types joins the operator's dispatch: narrower than the core candidate (awhere, a subset, a literal, a narrower type,is default) it wins, tied with it the call is ambiguous, and broader than it the core candidate wins.multi infix:<+>(Int $a, Int $b)beside the coreInt:D, Int:Dmakes1 + 2ambiguous
user-infix-takes-a-type-objectRaku++ passesRakudo passes- 1
A user-declared
multi infix:<op>candidate with a class-typed parameter is chosen when the operand is that class's type object, as it is for an instance.with
class A { method Str { self } }; multi infix:<~>(Str() $a, A $b) { "B" },say "A: " ~ AprintsB
user-multi-infix-one-argRaku++ passesRakudo passes- 1
After a program declares
multi sub infix:<OP>for a built-in operator, the built-in's one-argument form still answers.&infix:<->(10)is10after a usermulti sub infix:<->is declared - 2
A user-declared
multi sub infix:<OP>for an operator the language does not have dies with X::Multi::NoMatch when called with one argument that no candidate takes. inferred
user-multi-on-builtin-prefixRaku++ passesRakudo passes- 1
A program's
multion a built-in prefix operator (-,+,~,!,so,not) joins the built-in's candidates: it is tried first for core operands too, and the operator called by name still reaches the built-in.multi prefix:<->(Str $x) { "str" }; -"a"is "str", andprefix:<->(3)still negates - 2
A plain
subnamed for a built-in prefix operator replaces the built-in. - 3
&prefix:<++>,&postfix:<++>and their--forms are routines that step the container they are handed.
user-operators-compiledRaku++ passesRakudo times out- 2
A user-declared
sub infix:<OP>,my &infix:<OP>or lexical operator sub replaces the built-in operator of that name in its scope, also for plain Int operands.
More from this test: Numerics (1).
user-operators-metaopsRaku++ passesRakudo passes- 1
Metaoperators and chains over a program's own infix call the user's operator for each application, not the built-in.
value-identityRaku++ passesRakudo passes- 5
===distinguishes an Int from a Rat of equal value.1 === 1.0is False
More from this test: Hashes & sets (1), Numerics (1), Types & coercion (3).
version-wildcards-and-io-succRaku++ passesRakudo passes- 1
In a
Versionsmartmatch a*part is a wildcard and a trailing+means that version or later.v1.0.1 ~~ v1.*is True - 2
When ordering Versions with
cmp, a*part is lower than any concrete part and a trailing+sorts after the bare version.v1.2.3 cmp v1.*isMore - 3
<=>compares Versions as versions, including one with a+suffix, instead of numifying them.
More from this test: Types & coercion (1).
whatever-curries-user-postfixRaku++ passesRakudo passeswhatever-curry-is-syntacticRaku++ passesRakudo passeswhatever-curry-past-user-acceptsRaku++ passesRakudo passes- 1
A written
* ~~ Dcurries when D is a user class with anACCEPTSof its own, as* ~~ Intdoes, while a Whatever value still goes toACCEPTS.<long short>.map(* ~~ D)maps with the curried smartmatch
whatever-prefix-numifyRaku++ passesRakudo passes- 1
A WhateverCode built from prefix
+or-(+*,-*) gives exactly what the prefix gives when applied directly: an Int for a digit string or a list's count, 0 or 1 for a Bool, a Rat for a Rat, and exact bigints."123".comb.map(+*)is(1, 2, 3)
whatever-sub-and-modifier-declRaku++ passesRakudo passes- 1
*.&subcurries into a WhateverCode instead of callingsubwith the Whatever.@a.map(*.&sub)maps each element throughsub
More from this test: Lists & laziness (1), Scoping & phasers (1).
whatever-value-infix-does-not-curryRaku++ passesRakudo passes- 1
An infix on a Whatever value held in a variable is applied to it; only a
*written there curries.my $w = *; $w ~ "a"is "*a" and5 ~~ $wis True
whatever-value-method-does-not-curryRaku++ passesRakudo passes- 1
A method called on a Whatever value held in a variable is called on it; only a
*written as the invocant curries.my $w = *; $w.grep({ True })is(*,).Seq
whatever-value-not-numericRaku++ passesRakudo passes- 1
A numeric operator on a Whatever value held in a variable dies "Cannot resolve caller Numeric(Whatever:D: )", while the string, smartmatch and
cmp-based operators take it; only a written*curries.my $w = *; $w + 1,$w == 1and-$wdie
whatever-value-smartmatchRaku++ passesRakudo passes- 1
Whatever-currying is syntactic: only a literal
*written in an expression makes a WhateverCode, and a*that arrives as a value (in a variable, as a topic, or as an argument) is an ordinary object.Pair.ACCEPTS(*)is False;sub f($x where Int)rejects*;(*, 1).grep(Str)drops the star
word-list-escapes-comma-op-forward-typeRaku++ passesRakudo passes- 2
The comma can be the operator of a hyper:
@a >>,<< @bpairs the two sides up.
More from this test: Scoping & phasers (1), Syntax & parsing (1).