Raku Cases › Operators

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 probes2026-11-28 · d435fc87
  1. 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. 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 probes2026-11-28 · 04a1722e
  1. 2

    ~~ against a Callable calls it under every meta-operator and for every kind of Callable.

6e-gatingRaku++ passesRakudo cannot run it2026-08-19 · 387d2c88
  1. 24

    From 6.e prefix // is .defined.

    under 6.e //42 is True and //Any is 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 passes2026-10-02 · 99f09017 · #109
  1. 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 xx refuse it at compile time (X::Syntax::Adverb), other built-ins have no candidate taking it (X::Multi::NoMatch when called), and a user infix receives it as a named argument.

  2. 2

    Parentheses around the subscript, or an operator looser than item assignment, keep an adverb on the subscript.

andthen-topic-typed-variableRaku++ passesRakudo passes2026-11-09 · 43dbcefb
  1. 1

    andthen, orelse and notandthen bind $_ 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 passes2026-10-02 · 99f09017
  1. 3

    ».^name calls the meta-method on the list itself, once.

    ».^name on a List is List

More from this test: Syntax & parsing (2).

anton-batch-2026-09-12Raku++ passesRakudo passes2026-09-12 · 6b2a1718
  1. 2

    $obj ~~ "text" is Str.ACCEPTS, which compares the string with the topic's .Str, so an object with its own method Str smartmatches the string that method returns. inferred

    class P { method Str { "pval" } }; P.new ~~ 'pval' is True

More from this test: Containers & assignment (1), Syntax & parsing (1).

any-identityRaku++ passesRakudo passes2026-08-10 · 862f352f
  1. 1

    An untyped, unassigned variable is identical to the Any type object under ===.

    my $x; $x === Any is True

atomic-callables-and-unicode-minusRaku++ passesRakudo passes2026-11-13 · ea466f67 · rakudo#6873
  1. 1

    The atomic subtract-assign operator is accepted with the Unicode minus U+2212, as ⚛−=.

  2. 2

    The atomic operators exist as callables: &prefix:<⚛>, &prefix:<++⚛>, &prefix:<--⚛>, &postfix:<⚛++> and &postfix:<⚛-->.

More from this test: divergences (1).

audited-language-gaps-1Raku++ passesRakudo passes2026-10-04 · 76f5426d
  1. 7

    @a».*m answers 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 passes2026-10-04 · 39c1aeb6
  1. 11

    ++ on a non-container expression is X::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 passes2026-07-23 · 9baeff7c
  1. 6

    !=:= is the negated container-identity operator. inferred

    $a !=:= $b is true for two distinct variables

More from this test: Regexes & grammars (2), Signatures & dispatch (1), Syntax & parsing (3).

batch2-twin-consolidationRaku++ passesRakudo cannot run it2026-08-27 · 9d7809f7
  1. 1

    A reduction with a chaining comparison is true only when every adjacent pair satisfies the operator.

    [<] 3,1,2 is False

More from this test: Lists & laziness (1), divergences (1).

battery-regressions-v5Raku++ passesRakudo passes2026-09-29 · 78d68426
  1. 9

    A user infix:<×> does not take over *, so sub 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 passes2026-08-20 · 3d937688
  1. 1

    := binds at list precedence, whatever the target's sigil, and is looser than the zip and cross infixes.

    my $b := 1, 2 binds 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 passes2026-08-30 · 945285cc · #47
  1. 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 *.

  2. 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 18 still uses the Int candidate

More from this test: Containers & assignment (2), Classes, roles & the MOP (3).

blob-numeric-and-zip-metaopRaku++ passesRakudo passes2026-07-29 · 8c793652
  1. 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 passes2026-08-31 · 2d04edb3
  1. 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 passes2026-11-08 · a72b133c
  1. 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 passes2026-11-08 · 75326b8b
  1. 1

    A built-in operator called by its name is that operator applied.

    prefix:<->(3), prefix:<so>(1), postfix:<++>(my $y = 1) and postcircumfix:<[ ]>((1,2,3), 1) all work

  2. 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 passes2026-10-23 · 93f9a4af
  1. 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 passes2026-09-16 · f130fff1
  1. 1

    A [&f] B uses a Callable as an infix operator, with additive precedence and left associativity.

    $current [&($op)] 1 applies $op to the two operands

callsame-reaches-builtin-operatorRaku++ passesRakudo passes2026-10-04 · 0b4b91e2
  1. 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 out2026-10-06 · 6fed577d · #130
  1. 1

    $s ~= X and $s = $s ~ X call a user-declared infix:<~> for the operands its signature is narrower for, inside a loop or outside one.

cat-user-candidate-object-operandRaku++ passesRakudo passes2026-11-05 · c77f05e7
  1. 1

    Infix ~ written out dispatches to a user multi infix:<~> candidate over an object or an enum operand.

    Rt.new ~ 1 with an (Rt, Int) candidate is the candidate's answer, not Rt<…>1

class-range-spaces-set-identity-aliasRaku++ passesRakudo passes2026-08-20 · f730e79e
  1. 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 passes2026-09-02 · ecdadbad
  1. 7

    =:= compares container identity, never contents, whatever the operands are.

    @a.clone =:= @a is False; [1,2] =:= @a is False

More from this test: Containers & assignment (1), Classes, roles & the MOP (4), Scoping & phasers (1).

code-accepts-and-regex-callableRaku++ passesRakudo passes2026-09-11 · 6d82fac4
  1. 1

    .ACCEPTS on 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 passes2026-09-14 · 2b013edd · #85
  1. 1

    A ,= B is always A = A, B: the comma applied to the two operands and the result assigned with whatever that assignment means for A's container.

    %h ,= 5 => 4 grows the hash

complex-words-order-and-allomorph-newRaku++ passesRakudo passes2026-10-23 · 72e0c5fb
  1. 2

    cmp between a Complex and a plain Str compares them as strings, and before/after agree with that cmp.

    "abc" cmp <0+0i> is not Same

More from this test: Numerics (1), Types & coercion (1).

compose-cross-placeholderRaku++ passesRakudo passes2026-07-30 · 6bac763b
  1. 1

    ∘ (ASCII o) is looser than all arithmetic operators.

    &abs ∘ * - 5 composes &abs with the WhateverCode * - 5

  2. 2

    A bracketed cross metaoperator may hold a reversed operator, as in 16 X[R%] ....

  3. 3

    With Xxx the left side of xx is thunked: each replication re-evaluates it, and the replications group element-major.

  4. 4

    Postfix ++ or -- on an undefined variable returns the type's zero.

    my $x; $x++ returns 0 and leaves $x at 1

More from this test: Scoping & phasers (1).

conformance-list-adverbsRaku++ passesRakudo passes2026-07-26 · a1d04a23
  1. 7

    &infix:«OP» is the guillemet spelling of &infix:<OP>.

More from this test: Lists & laziness (6), Types & coercion (1).

data-generators-clusterRaku++ passesRakudo passes2026-08-21 · 31b0a7ad
  1. 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 passes2026-08-05 · efed6ddf
  1. 2

    Prefix +^ is -(x+1), exact at any width.

    +^0xF123456789ABCDEF is -17375808098319191536

More from this test: Containers & assignment (1), Signatures & dispatch (3).

digest-native-widths-clusterRaku++ passesRakudo passes2026-08-03 · cc0f34e5
  1. 1

    ~^, ~| and ~& on two buffers return a buffer of the left operand's type.

    Buf.new(65,66) ~^ Buf.new(1,1) is Buf.new(64,67); Blob ~^ Buf is a Blob

  2. 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 passes2026-11-05 · 5ebbe282 · #47
  1. 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 $n is the built-in's answer

dist-suite-quartetRaku++ passesRakudo passes2026-08-05 · 4e2c20cd
  1. 4

    eqv and is-deeply compare objects structurally, so a clone is eqv its source.

    $a.clone eqv $a is 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 passes2026-07-25 · e05a8563
  1. 1

    <=>, cmp, leg and unicmp return an Order value, which is Int-backed. inferred

    (1 <=> 2) === Order::Less and (1 <=> 2).Int is -1

  2. 6

    notandthen with a defined left side yields Empty, a Slip. inferred

    (1 notandthen 2).^name is Slip

More from this test: Lists & laziness (3), Numerics (3), Types & coercion (1).

eco-blockers-2026-09-14Raku++ passesRakudo passes2026-09-14 · 3b6b50af
  1. 7

    An object that delegates Numeric, as in has FatRat $.f handles <Numeric>, numifies through it for the numeric comparison operators.

  2. 8

    A number on the right of ~~ is a matcher: Numeric.ACCEPTS numifies 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 passes2026-09-05 · ebe0953e
  1. 8

    * => 1 and "a" => * are WhateverCodes, while a => * 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 passes2026-09-09 · 063a5a1a
  1. 4

    WhateverCodes built from prefix operators such as ~* honour an object's user-defined method Str or method Bool.

  2. 13

    The string comparison operators eq, ne, lt and the rest compare an object by its own method 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 passes2026-08-25 · 6879a71b
  1. 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 passes2026-08-10 · 862f352f
  1. 1

    eqv is type-aware: two values of different types are never eqv, however equal their contents.

    (1,2) eqv [1,2] is False

    Also held by is-deeply-strict-and-anton-batch.

exe-module-closure-lexicalsRaku++ passesRakudo passes2026-11-11 · 75425e0a · #243
  1. 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 passes2026-11-19 · edc7c865
  1. 2

    $x ~~ EXPR evaluates EXPR with $_ set to $x, not to the outer topic. inferred

    Also held by exe-nested.

More from this test: Lists & laziness (1), Stringification (1).

exe-reverse-word-metaopRaku++ passesRakudo passes2026-10-18 · a8cede75
  1. 2

    Every R metaoperator reverses again, so a doubled R restores the operator.

    RRcmp is cmp

feed-into-prefix-operatorRaku++ passesRakudo does not pass2026-09-19 · 8f51a4db
  1. 1

    A feed's target is a call, and the fed value joins its argument list at the end.

    5 ==> f(2) is f(2, 5)

  2. 2

    A user-defined prefix or postfix operator application can be the target of a feed.

    5 ==> §2 with a user-defined prefix:<§>

flipflop-and-exclusive-seqRaku++ passesRakudo passes2026-07-25 · 87bdca82
  1. 1

    While on, a flip-flop (ff, fff) evaluates to an Int run counter, never a Bool.

  2. 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. 3

    fff does not test its right-hand side on the element that switched it on.

  4. 4

    ^... and ^...^ are forms of the sequence operator that exclude the seed.

  5. 5

    does requires a role on its right and o/∘ require Callables, so 1 does 2 and 1 o 2 are errors.

flipflop-and-nil-termRaku++ passesRakudo passes2026-07-28 · ccc187ec
  1. 2

    ^ff, ff^ and ^ff^ are single flip-flop operators; the carets are not prefixes or postfixes on the operands.

  2. 3

    A flip-flop evaluates to Nil while off.

More from this test: Hashes & sets (1), Syntax & parsing (1).

flipflop-regex-operands-exclusiveRaku++ passesRakudo passes2026-11-11 · ca60fcc7 · #52
  1. 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 passes2026-10-19 · 9550aecc
  1. 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 passes2026-09-06 · fa74f74f
  1. 11

    "a" x Inf is refused with an exception.

    "a" x Inf dies

  2. 14

    [...] reduces with the real sequence operator.

    ([...] 1, 3, 9).join(",") is 1,2,3,4,5,6,7,8,9

  3. 15

    [&&] over an empty list is True.

    [&&] () is True

  4. 18

    The hyper pair constructor >>=><< keeps a non-Str key as it is instead of stringifying it.

    ((1, 2) >>=><< (3, 4))[0].key.^name is Int

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 passes2026-09-20 · ed688ad6
  1. 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) is False; "a" ~~ %h is True when %h has key a

  2. 24

    Pair.ACCEPTS with a Pair topic matches the keys and smartmatches the topic's value against the matcher's value. inferred

    (a => 1) ~~ (a => Int) is True; (a => Int) ~~ (a => 1) is False

  3. 25

    Pair.ACCEPTS with 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) is True; 42 ~~ (is-prime => False) is True

  4. 26

    A Pair topic smartmatched against a Hash is looked up by its Str, not compared as an entry. inferred

    (a => 1) ~~ %(a => 1) is False

More from this test: Containers & assignment (3), Hashes & sets (13), Stringification (5), Types & coercion (1).

hyper-ascii-markers-and-shapeRaku++ passesRakudo passes2026-07-31 · 2c1dc7c5
  1. 1

    The Unicode operator aliases (÷, ×, −, ≥, ≤, ≠) work inside ASCII hyper markers as they do inside guillemets.

    >>÷>> divides elementwise like »÷»

  2. 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 passes2026-08-20 · 0039c700
  1. 1

    >>[0] after a term is a hyper subscript, while >>[+]<< is a hyper infix citing an operator.

    @a>>[0]>>.Str takes element 0 of each item

  2. 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 passes2026-07-22 · a72615db
  1. 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 passes2026-07-29 · 51203006
  1. 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 passes2026-09-30 · bcc92b0f
  1. 1

    @c».(args) is a hyper, not a .map: the answer keeps the invocant's shape (an Array stays an Array, a List a List, a Hash keeps its keys) and nested lists are descended into.

  2. 2

    In @c».(args) an element that is not Callable is refused as a &code binding failure.

hyper-metaop-precedenceRaku++ passesRakudo passes2026-08-20 · fa5c2fba
  1. 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 passes2026-10-09 · 0f15e190
  1. 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 passes2026-11-13 · cfbda86a · rakudo#5951
  1. 1

    A hyper operator reduced over one operand is its inner operator's one-argument form.

    [»+«] [[1,2],] is 2

  2. 2

    The one-argument form of infix:<~> joins a list's elements with no separator.

    infix:<~>(<a b>) and [~] $(<a b>) are "ab"

hyperwhateverRaku++ passesRakudo passes2026-07-25 · d59d3514
  1. 2

    In a list smartmatch pattern, ** matches a run of zero or more elements.

    (1, 2, 4, 8) ~~ (1, **, 8) is True

    Also held by itemization-and-list-folds.

More from this test: Syntax & parsing (1).

imported-operator-traitsRaku++ passesRakudo passes2026-10-29 · f417ab7e · #60
  1. 1

    An operator imported from a module keeps its precedence and associativity traits (is assoc, is equiv, is tighter, is looser).

    1 ⊗⊗ 2 ⊗⊗ 3 with an imported is assoc<right> operator nests right

  2. 2

    The short operator reference in a trait, is equiv(&[**]), gives the operator that precedence.

  3. 3

    A sub that 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 passes2026-10-05 · 1084a255
  1. 1

    ++ and -- are .succ and .pred: a Str steps as a string, a Bool saturates, and a class's own succ is called.

    $s++ on "aa" gives "ab"

is-deeply-strict-and-anton-batchRaku++ passesRakudo passes2026-08-28 · 2421c094
  1. 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.^name is List

  2. 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]]>>.elems is (2, 2); {a=>1,b=>2}>>.Str is {:a("1"), :b("2")}

  3. 11

    .= assigns across a parenthesised list target, and on an @ variable it stores an Array.

    my ($x, $y) = 'one', 'two'; ($x, $y) .= reverse leaves two and one

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 passes2026-10-01 · c9d8ade5 · #113
  1. 1

    A sequence ... against -Inf is unbounded downwards: a lone seed steps by .pred, where * and Inf step by .succ.

    3 ... -Inf is 3 2 1 0 …

  2. 2

    Seeds already moving away from the endpoint never reach it, and the sequence is empty.

    1, 3 ... -Inf is empty, as 5, 3 ... 10 is

  3. 3

    ^... skips only the seed of a lazy sequence and the rest still generates.

    3 ^... * is not empty, and 1, *+1 ^... * calls its generator with the previous value

issue34-hyper-hash-subscriptRaku++ passesRakudo passes2026-08-26 · 27b07a35 · #34
  1. 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 passes2026-07-26 · 0ccec43d
  1. 4

    leg compares its operands as strings, even numeric ones.

    -4 leg -1 is More where -4 cmp -1 is Less

  2. 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 passes2026-10-08 · 425d70df
  1. 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 passes2026-10-11 · 33d25fb9
  1. 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».elems is a List; for my @a = 1, -2, @a».abs is an Array

More from this test: Containers & assignment (2), Lists & laziness (2).

js-backend-framework-clusterRaku++ passesRakudo passes2026-09-13 · 862e3888
  1. 9

    * => True as 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 pass2026-08-05 · ddc75ad1
  1. 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 passes2026-08-20 · 938c382e · #22
  1. 1

    A Junction argument autothreads a method call wherever the call is made from, a WhateverCode included.

    *.contains(none '01') answers none(False), which is true

junction-hyper-method-callRaku++ passesRakudo passes2026-10-09 · 709e6627 · #116
  1. 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)».status is all((Kept), (Kept))

junction-interpolationRaku++ passesRakudo passes2026-07-30 · 5f8e831e
  1. 2

    Prefix ~ on a Junction autothreads, as the .Str method does.

More from this test: Strings & Unicode (1).

lex-shadow-filter-exactRaku++ passesRakudo passes2026-10-20 · e9841fec
  1. 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 × calls

    Also held by unicode-operator-names-apart.

lizmat-nqp-opsRaku++ passesRakudo passes2026-09-13 · 3a8f2148
  1. 4

    with, without, // and orelse consult a user-defined method defined.

More from this test: Lists & laziness (1), Numerics (1), Everything else (1), Types & coercion (1).

loose-prefixes-and-listop-adverbsRaku++ passesRakudo passes2026-07-27 · 40bb85d6
  1. 1

    so and not are prefix operators that bind tighter than the comma, not listops that take the whole list.

    so 1, 2 is (so 1), 2, and f(so ($x), 2) passes two arguments

More from this test: Lists & laziness (1), Syntax & parsing (1).

math-sparsematrix-installRaku++ passesRakudo passes2026-08-31 · b165e3b8
  1. 2

    A user-defined postcircumfix:<[ ]> or postcircumfix:<[; ]> candidate is called for subscripts on the types it accepts.

  2. 4

    A user-defined prefix operator candidate for an object type is called in preference to the built-in prefix of the same name.

    -$matrix calls the user's prefix:<-> 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 passes2026-11-05 · c43f88fa · #47
  1. 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, 6 takes the candidate, as 2.0 lcm 6 does

metaop-object-operands-user-infixRaku++ passesRakudo passes2026-10-21 · 6b080a07
  1. 1

    Z+, X+, R+ and [+] over object operands consult a user multi 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 passes2026-10-04 · 1ae46f02
  1. 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 passes2026-08-02 · 2d99420e
  1. 12

    Smart-matching against an object calls its ACCEPTS method, 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 passes2026-08-09 · 74aac52a
  1. 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 passes2026-08-12 · 3d6f6abd
  1. 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 passes2026-10-09 · 6acb4326
  1. 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 passes2026-09-22 · 2d8e5481 · #96
  1. 1

    $x ~~ $matcher invokes a Callable matcher with the topic.

    200 ~~ (* > 100) is True

  2. 2

    A regex literal on the left of ~~ is the Regex object being tested, not a match against $_.

    /a/ ~~ Callable asks whether the Regex is Callable

  3. 5

    A metamodel call or .WHAT on a parenthesized WhateverCode applies to the WhateverCode itself rather than currying further.

    (* < 1)(0) calls the closure; (* < 1).WHAT is the WhateverCode's

    Also held by whatever-curry-is-syntactic.

  4. 6

    A chained comparison containing a written * curries as one arity-one closure: 1 < * < 5 is a band predicate.

    1 < * < 5

    Also held by whatever-curry-is-syntactic.

  5. 7

    A short-circuit infix between two curried terms hands back one side, so * > 2 && * < 5 is * < 5, a closure of arity one, not one two-argument closure.

    * > 2 && * < 5 is * < 5

More from this test: Exceptions & control flow (1), Types & coercion (3).

negated-reduce-and-blocking-receiveRaku++ passesRakudo times out2026-07-25 · 87bdca82
  1. 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 passes2026-07-24 · 49b7457c
  1. 2

    The reverse-comma metaoperator a R, b gives the list (b, a).

More from this test: Signatures & dispatch (1).

object-cmp-by-stringyRaku++ passesRakudo passes2026-10-21 · d0a85b2b
  1. 1

    cmp over objects is a.Stringy cmp b.Stringy unless both sides are Reals: an object is Same as itself, a does Real or is Int object compares as its number, and a method Stringy outranks method Str.

More from this test: Lists & laziness (2).

only-ellipsis-bracketed-infixRaku++ passesRakudo passes2026-08-20 · f4d8518b
  1. 2

    The Unicode ellipsis carries the sequence operator's exclusion markers.

    5^…0 is 5^...0 and 1…^3 is 1...^3

  2. 4

    The bracketed infix A [op] B accepts 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 passes2026-10-04 · ddf56aba
  1. 1

    A compound assignment over core operands consults a user operator candidate, as the operator itself does.

    $t += 200 beside multi infix:<+>(Int $a, Int $b where * > 100) is that candidate's answer

op-assign-infix-error-propagatesRaku++ passesRakudo passes2026-11-10 · 31565ae4
  1. 1

    An exception raised inside a user-defined infix:<OP> reaches the caller of OP=; the built-in operator is not tried in its place.

    sub infix:<+>(A $a, $b) { die "boom" }; my $x = A.new; $x += 1 dies with boom

operator-as-value-identityRaku++ passesRakudo passes2026-09-16 · c7bea024
  1. 1

    &[R[~~]] parses: the &[…] operator-as-value form accepts a nested bracketed metaoperator.

    &[R[~~]] is the reversed smartmatch routine

  2. 2

    Two mentions of one built-in operator as a value are the same routine.

    &[~~] eqv &[~~] is True

operator-by-assignmentRaku++ passesRakudo passes2026-09-13 · 401dc82e
  1. 1

    An operator declared by assigning to a code variable, my &infix:<plus> = sub ($a, $b) {…}, is a real operator exactly as sub infix:<plus>($a, $b) {…} is.

    2 plus 3 is 5

operator-strictnessRaku++ passesRakudo passes2026-07-28 · ccc187ec
  1. 1

    A non-numeric string operand of the bitwise, repetition and approximate-equality operators throws X::Str::Numeric instead of counting as 0.

More from this test: Stringification (1), Syntax & parsing (1).

package-relative-namesRaku++ passesRakudo passes2026-07-23 · 0e4912e1
  1. 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 passes2026-07-26 · 34ff4d2a
  1. 2

    $val ~~ :method calls that method on $val and tests the result against the pair's value.

    3 ~~ :is-prime is True, and so is 4 ~~ :!is-prime

  2. 3

    Smartmatching a Pair or Hash against a Pair is an ordinary value comparison, not a method call.

More from this test: Hashes & sets (1), Stringification (2).

parameterized-decl-bind-posRaku++ passesRakudo passes2026-08-30 · 38a0d900 · #47
  1. 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 passes2026-09-14 · a3586267
  1. 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 passes2026-09-15 · 02003b9f
  1. 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 passes2026-11-13 · 22520fae · rakudo#2000
  1. 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 passes2026-07-24 · 1dff3a45
  1. 2

    $x ~~ Nil is true only for Nil itself; 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 passes2026-11-13 · 521d34ae · rakudo#4757
  1. 1

    The R metaoperator reverses an operator's associativity as well as its operands.

    2 R- 3 R- 4 is -1, as [R-] 2, 3, 4 is

  2. 2

    Under R, a right-associative operator becomes left-associative (R**), and a comparison is not regrouped.

r-metaop-over-zip-and-crossRaku++ passesRakudo passes2026-11-13 · 8c513f23 · rakudo#1616 · rakudo#6128
  1. 1

    The R metaoperator composes over Z and X, 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 passes2026-10-05 · 892e6c61
  1. 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 passes2026-10-05 · e209ae16
  1. 5

    but is a structural infix, so 48 but 1 + 2 parses with ordinary precedence, and but R<a b> hands the role the list.

  2. 6

    5 but Any is 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 passes2026-10-05 · be813251
  1. 3

    our &infix:<qq> = &c declares the operator, and after a term a declared infix word is the operator, not a quote.

  2. 6

    A type object's own ACCEPTS method 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 passes2026-10-05 · c5326843
  1. 3

    @objs>>.Base::m dispatches per element through the qualifier.

  2. 8

    >><>, a hyper zen angle slice, dies.

More 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 passes2026-10-05 · 93d444fb
  1. 1

    A sequence ... seeded with enum values steps by .succ/.pred, in both directions.

  2. 3

    A lexical infix:<..> or infix:<...> 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 passes2026-10-03 · 99895bb5
  1. 5

    $n max= *.elems curries 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 passes2026-09-22 · 1c853075
  1. 6

    A string that does not parse as a number does not match a numeric Range.

    "raku" ~~ -Inf..Inf is False

More from this test: Lists & laziness (4), Numerics (2), Types & coercion (1).

range-reduce-excludes-int-minimumRaku++ passesRakudo passes2026-11-09 · 96c81b9a
  1. 1

    [max] and [min] over an empty Int Range answer -Inf and Inf, including a Range whose excluded end is the int64 minimum.

    [max] 5..^(-9223372036854775808) is -Inf and [min] of it is Inf

reduce-lone-array-operandRaku++ passesRakudo passes2026-11-13 · 1ba950a5
  1. 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 passes2026-11-13 · a0437c10 · rakudo#4128
  1. 1

    reduce with a built-in chaining comparison chains, as [op] does.

    reduce &[>], 6, 5, 4 is True

roast-last-filesRaku++ passesRakudo passes2026-09-28 · 6e9ef4cc
  1. 11

    A nodal routine in a hyper call (».elems, a sub … 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 pass2026-09-28 · 2cc896bd
  1. 3

    A user postfix declared is looser than 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 it2026-09-28 · 2cc896bd
  1. 21

    A user infix applied to a parenthesized WhateverCode extends the curry it holds. inferred

  2. 34

    x Inf answers a Failure. inferred

  3. 51

    Reducing with an operator declared is assoc<chain> tests each adjacent pair. inferred

  4. 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 passes2026-11-13 · bec86076 · rakudo#4780
  1. 1

    .prec, .precedence, .associative, .thunky and .iffy on an operator's Routine answer that operator's precedence properties.

    &infix:<+>.prec answers instead of "No such method"

  2. 2

    A declared operator's precedence traits copy, tighten (@=) or loosen (:=) the .prec of the operator they name, and the declared operator keeps its own associativity.

scalars-nil-junction-complex-dateRaku++ passesRakudo passes2026-07-27 · ebbe10f3
  1. 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 strings 5.0 and 5

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 passes2026-08-05 · 21d5791b
  1. 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. 2

    A hyper method call » over a Blob visits its elements.

  3. 3

    .= with an indirect &sub call 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 passes2026-09-27 · 0d048722
  1. 1

    A lone Rat seed of the sequence operator ... steps by .succ/.pred and its elements stay Rats.

    1.0 ... 3 is (1.0, 2.0, 3.0)

  2. 2

    With a Rat step deduced by ..., each element is the one before it plus the step, so the seed the step was deduced up to becomes a Rat as well.

    0.1, 2 ... 3 is (0.1, 2.0)

set-ops-reduce-max-adverbsRaku++ passesRakudo passes2026-08-20 · d75f13a6
  1. 2

    The reverse metaoperator inside a reduction turns the whole reduction around, not each step.

    [R-] 1,2,3 is 3-2-1, i.e. 0

  2. 3

    [R,] reverses a list.

More from this test: Hashes & sets (2), Lists & laziness (1).

set-predicate-reduce-chainsRaku++ passesRakudo passes2026-11-13 · 2416bbe5
  1. 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 passes2026-11-09 · c6791c72
  1. 1

    +< refuses a shift count past 2**31 at once with "Error in mp_mul_2d: Value out of range".

    1 +< 9223372036854775807 dies "Error in mp_mul_2d: Value out of range"

sigilless-traits-and-container-assignRaku++ passesRakudo passes2026-08-15 · d51bd661
  1. 2

    =$=, =@= and =%= are assignment operators that pick item, list or hash assignment semantics explicitly instead of taking them from the target's sigil.

  2. 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 passes2026-11-11 · ca60fcc7 · #30
  1. 1

    xx with a Slip on its left slips it into the result on each repetition.

    (|(1,2) xx 2) is not ((1 2) (1 2))

  2. 2

    xx * repeats without end: an iterator over 1 xx * keeps answering the value and never IterationEnd.

smartmatch-reads-a-proxyRaku++ passesRakudo passes2026-08-15 · d725e7c6
  1. 1

    A Proxy on either side of a smartmatch is read through its FETCH before matching.

    self ~~ $object.state matches the fetched value when state returns a Proxy

smartmatch-topic-padRaku++ passesRakudo passes2026-09-11 · 8e6e11d8
  1. 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 $_, %_), .key after $target ~~ List is still the Pair's key

string-bitwise-codepointsRaku++ passesRakudo passes2026-08-01 · d9335612
  1. 1

    The string bitwise operators ~^, ~| and ~& combine the codepoints of their Str operands, not their UTF-8 bytes.

    "A" ~^ chr(0xFF) is the single character U+00BE

  2. 2

    Prefix ~^ is refused on a Str but complements the bytes of a Blob or Buf.

tls-handshake-chain-and-identityRaku++ passesRakudo passes2026-08-03 · f204a165
  1. 3

    === on reference types such as Promise compares identity: two distinct Promises are not ===.

    @writes.grep({ $_ !=== $p }) removes only $p

  2. 4

    Buf, Instant and Duration values compare by identity under ===, while an immutable Blob compares by value.

    Buf.new(1,2) === Buf.new(1,2) is False

  3. 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 passes2026-10-10 · 79f0bc7c
  1. 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 pass2026-10-11 · fc6abf32
  1. 10

    A WhateverCode handed to .. through a variable does not curry the range.

  2. 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 it2026-09-02 · 3f24e005
  1. 2

    @a.»<key> and @a.»[0] are hyper subscripts, equivalent to @a».<key> and @a».[0].

    ({n => 1}, {n => 2}).»<n> gives 1, 2

More from this test: Lists & laziness (1), Modules (1), Native types & NativeCall (1), Everything else (1).

tries-with-frequenciesRaku++ passesRakudo passes2026-08-31 · 68e53568 · #53
  1. 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

  2. 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 pass2026-11-14 · e2981dc5 · rakudo#6793
  1. 1

    ~~ under a meta-operator (X~~, Z~~, »~~», [~~]) or called as infix:<~~> 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 it2026-10-20 · 145cddbf
  1. 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 passes2026-08-20 · a9358900
  1. 3

    A List on the right of a smartmatch compares element by element, and a non-Positional left side never matches.

    Any ~~ Empty and 1 ~~ (1,) are False

More from this test: Containers & assignment (1), Types & coercion (1).

unicode-operator-names-apartRaku++ passesRakudo passes2026-10-21 · a968d622
  1. 2

    A compound assignment written with a Unicode operator ($x ×= 3, @n[0] ×= 5, $v ×= V) calls the user's &infix:<×> shadow or multi infix:<×> candidate.

  2. 3

    A metaoperator finds a user operator by the spelling it was written with: [×], Z× and »×» call &infix:<×>, while [*], Z* and »*» call &infix:<*>.

  3. 4

    The hyper compound assignment @a »×=» 3 multiplies each element in place. inferred

unicode-ops-quadraticRaku++ passesRakudo passes2026-07-29 · 42d70993
  1. 1

    A user-defined infix with a symbolic name, sub infix:<±>, is usable as an infix operator.

  2. 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 passes2026-10-04 · 04d79271
  1. 1

    A user multi infix:<~> over core operand types is consulted when ~ is applied, as for +, eq and x.

    multi infix:<~>(Str $a, Str $b where "Z") is called for a matching ~

user-infix-filter-after-declarationsRaku++ passesRakudo passes2026-11-05 · 00734769
  1. 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 passes2026-10-01 · e9ab76da
  1. 1

    A user multi infix:<op> over core operand types joins the operator's dispatch: narrower than the core candidate (a where, 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 core Int:D, Int:D makes 1 + 2 ambiguous

user-infix-takes-a-type-objectRaku++ passesRakudo passes2026-11-13 · bdb022c4 · rakudo#6860
  1. 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: " ~ A prints B

user-multi-infix-one-argRaku++ passesRakudo passes2026-10-19 · 9550aecc
  1. 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) is 10 after a user multi sub infix:<-> is declared

  2. 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 passes2026-11-08 · 25f02957
  1. 1

    A program's multi on 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", and prefix:<->(3) still negates

  2. 2

    A plain sub named for a built-in prefix operator replaces the built-in.

  3. 3

    &prefix:<++>, &postfix:<++> and their -- forms are routines that step the container they are handed.

user-operators-compiledRaku++ passesRakudo times out2026-10-21 · 65713c7f
  1. 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 passes2026-10-21 · 65713c7f
  1. 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 passes2026-07-28 · 7768b86c
  1. 5

    === distinguishes an Int from a Rat of equal value.

    1 === 1.0 is False

More from this test: Hashes & sets (1), Numerics (1), Types & coercion (3).

version-wildcards-and-io-succRaku++ passesRakudo passes2026-07-27 · 40bb85d6
  1. 1

    In a Version smartmatch a * part is a wildcard and a trailing + means that version or later.

    v1.0.1 ~~ v1.* is True

  2. 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.* is More

  3. 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 passes2026-10-03 · 14e72451
  1. 1

    A * under a user-defined postfix operator is a Whatever-curry.

    (1..10).map(*!) is .map({ $_! })

  2. 2

    *i, a * under the built-in postfix:<i>, is a Whatever-curry.

whatever-curry-is-syntacticRaku++ passesRakudo passes2026-09-22 · 7fe51b37
  1. 1

    Whatever-currying is syntactic: only a * written in the expression curries, and a Whatever or WhateverCode arriving as a value from a variable, a return or an element is an ordinary operand.

    my $c = * > 100; $c eqv True is False

  2. 3

    =:= curries over a written * like every other operator.

whatever-curry-past-user-acceptsRaku++ passesRakudo passes2026-11-08 · b9c337a0
  1. 1

    A written * ~~ D curries when D is a user class with an ACCEPTS of its own, as * ~~ Int does, while a Whatever value still goes to ACCEPTS.

    <long short>.map(* ~~ D) maps with the curried smartmatch

whatever-prefix-numifyRaku++ passesRakudo passes2026-09-01 · 911d9040
  1. 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 passes2026-07-24 · 0fc51ec6
  1. 1

    *.&sub curries into a WhateverCode instead of calling sub with the Whatever.

    @a.map(*.&sub) maps each element through sub

More from this test: Lists & laziness (1), Scoping & phasers (1).

whatever-value-infix-does-not-curryRaku++ passesRakudo passes2026-11-08 · 2d078a02
  1. 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" and 5 ~~ $w is True

whatever-value-method-does-not-curryRaku++ passesRakudo passes2026-10-31 · 34168c0e · #77
  1. 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 passes2026-11-08 · 1f5ed33a
  1. 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 == 1 and -$w die

whatever-value-smartmatchRaku++ passesRakudo passes2026-09-02 · 66f49321
  1. 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 passes2026-08-20 · 09e5fe68
  1. 2

    The comma can be the operator of a hyper: @a >>,<< @b pairs the two sides up.

More from this test: Scoping & phasers (1), Syntax & parsing (1).