Lists & laziness
Lists, Arrays, Seqs, ranges, flattening, and when a block actually runs.
265 rules from 155 tests. 144 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.
array-composer-sourcesRaku++ matches Rakudo on all 38 probesmodifier-loop-as-expressionRaku++ matches Rakudo on all 18 probes- 1
EXPR for LISTwhere a value is wanted (afterdo,gather,try, in parentheses, on the right of=) is the loop, run where it stands, and its values are a List, not a lazily read Seq.
6e-gatingRaku++ passesRakudo cannot run it- 2
The
.snipmethod and thesnipsub exist only from 6.e.(1,2,3,4,5).snip(* < 3)is((1 2) (3 4 5))under 6.e and "No such method" under 6.d - 3
The
rotorsub exists only from 6.e.rotor(2, 1..6)is((1 2) (3 4) (5 6))under 6.e and "Undefined routine" under 6.d - 8
An array multislice selecting one element returns the value under both 6.d and 6.e.
my @a = [[1,2],[3,4]],; @a[0;1;0]is 3 - 11
From 6.e a Range is true only when it holds something; before 6.e a Range is always true.
(5..1).Boolis False under 6.e and True under 6.d - 13
From 6.e
Int.pick(n)is short for(^Int).pick(n); before 6.e it picks from a one-item list.6.pick(3).elemsis 3 under 6.e and 1 under 6.d - 19
From 6.e an itemized replacement given to
.splicegoes in whole; before 6.e every replacement flattens.my @a = 1,2,3; @a.splice(1,1,$[8,9])leaves[1, [8, 9], 3]under 6.e and[1, 8, 9, 3]under 6.d - 27
From 6.e
.skiptakes several counts, alternately producing and skipping; before 6.e it takes one count only.under 6.e
(1..10).skip(2,3).Listis(1 2 6 7 8 9 10) - 28
From 6.e a
||@islipped subscript navigates the array's dimensions; before 6.e it is a plain slice.my @a = [[1,2],[3,4]],; my @i = 0,1,0; @a[||@i]is 3 under 6.e
More from this test: Dates & times (2), Exceptions & control flow (1), Hashes & sets (3), I/O & processes (2), Numerics (1), Classes, roles & the MOP (2), Operators (1), Everything else (2), Regexes & grammars (2), Scoping & phasers (2), Signatures & dispatch (1), Strings & Unicode (6), divergences (1).
any-flatmap-and-match-flatRaku++ passesRakudo passes- 1
flatmapis a method on Any, where a lone scalar is a one-element list.42.flatmap({…})is(42,).Seq
More from this test: Regexes & grammars (1).
array-array-copiesRaku++ passesRakudo passesarray-composer-contextualized-arrayRaku++ passesRakudo passes- 1
By the one-argument rule, a single contextualized array in an array composer,
[ @$v ],[ @($v) ]or[ $v<> ], spreads into its elements, and[ $h<> ]spreads a hash's pairs.
array-composer-contextualized-hashRaku++ passesRakudo passes- 1
By the one-argument rule, a single Hash contextualizer in an array composer,
[ %( … ) ]or[ %$h ], spreads into its pairs.[ %( a => 1, b => 2 ) ]has two elements
array-composer-one-arg-rangeRaku++ passesRakudo passes- 1
In an array composer a
$variable holding a Range is one element; the one-argument rule does not spread an itemized value.my $r = 1..3; [$r]has one element
array-composer-spreads-returned-hashRaku++ passesRakudo passes- 1
The one-argument rule of
[ ]: a single argument that is Iterable and sits in no Scalar container gives its elements, whatever expression produced it.[ h() ],[ %h.clone ]and[ Hash.new(…) ]hold the Hash's pairs, not one HashAlso held by
array-composer-sources,array-literal-spread. - 2
In
[ ]a$item, an argument with a trailing comma, an element fetched from an array and a Set stay whole as one element.
array-elements-are-items-to-list-methodsRaku++ passesRakudo passes- 1
A list method over an Array hands out its elements as items: the topic a
.mapblock gets and what.grep,.first,.sortor.headhand back are itemized.my @rows = [1, 2], [3, 4]; @rows.map({ my @y = $_; @y.elems })is(1 1)
More from this test: Containers & assignment (1).
array-from-endless-range-is-lazyRaku++ passesRakudo passes- 1
An Array built from an endless integer Range, by
[1..*]or(1..*).Array, is a lazy Array of the Range's elements.[1..*].is-lazyis True and[1..*][^5]is its first five elements
array-list-decontainerizesRaku++ passesRakudo passes- 1
@a.Listdecontainerizes: an element stored itemized by@a[0] = [5, 6]comes back in the List without its$.after
@a[0] = [5, 6],@a.Listis([5, 6], [3, 4])Also held by
array-elements-are-items-to-list-methods.
audited-language-gaps-1Raku++ passesRakudo passes- 1
.EXISTS-POS(-1)is False..EXISTS-POS(-1)isFalse - 6
deepmapandduckmapiterate a Range's elements, and itemize a nested one.
More from this test: Concurrency (1), Containers & assignment (1), Exceptions & control flow (1), Hashes & sets (1), Operators (1), Regexes & grammars (2), Signatures & dispatch (3), Syntax & parsing (2).
audited-language-gaps-2Raku++ passesRakudo passes- 2
An Array is its own
.cache. - 6
.joinon an endless Range answers..., and thejoinroutine stops at a lazy argument.(1..*).joinis... - 7
An array composer with an endless Seq slipped into it is a lazy Array.
[0, |(1...*)]is a lazy Array
More from this test: Compile-time errors (2), Containers & assignment (1), Dates & times (1), Operators (1), Regexes & grammars (2), Strings & Unicode (2), Types & coercion (1).
audited-language-gaps-3Raku++ passesRakudo passes- 3
.nodemapkeeps a Slip its block returns as one element.
More from this test: Hashes & sets (1), I/O & processes (1), Native types & NativeCall (1), Strings & Unicode (1).
base64-sextetRaku++ passesRakudo passes- 3
A
Blob/Bufanswers list methods such as.rotorover its bytes.
More from this test: Exceptions & control flow (1), Regexes & grammars (1), Scoping & phasers (1), Signatures & dispatch (4).
batch1-silent-wrong-answersRaku++ passesRakudo passes- 3
A sequence whose seeds are neither arithmetic nor geometric throws X::Sequence::Deduction, with
fromnaming the seeds.1, 4, 9 ... 100throws - 6
Reading an array with a negative subscript computed at run time throws X::OutOfRange.
More from this test: I/O & processes (3), Numerics (1), Everything else (2), Scoping & phasers (1).
batch2-twin-consolidationRaku++ passesRakudo cannot run it- 2
XandZtake their operands' elements one level deep, without flattening sublists.(1,0) X (<a b>, <c d>)has 4 pairs
More from this test: Operators (1), divergences (1).
binding-is-a-list-operationRaku++ passesRakudo passes- 2
A zip of two endless sides stays lazy.
2..* Z* 2..*is the perfect squares
More from this test: Operators (1).
blob-new-of-lazy-seqRaku++ passesRakudo passes- 1
Blob.newandBuf.newgiven a Seq that nothing has read yet, such as a.mapresult or agather, take its elements.Blob.new(f()), wherefreturns a.mapSeq, isBlob:0x<01 02 03>
blob-numeric-and-zip-metaopRaku++ passesRakudo passes- 4
Zipping against a lazy infinite list such as
$i xx *draws as many elements from it as the other side has. inferred
More from this test: Hashes & sets (1), Operators (1), Types & coercion (2).
bound-attribute-truthinessRaku++ passesRakudo passes- 2
Rakudo::Iterator.OneValue($x)andRakudo::Iterator.Emptyexist and give a one-value and an empty iterator.
More from this test: Containers & assignment (1), Syntax & parsing (1).
code-objects-have-a-list-viewRaku++ passesRakudo passes- 1
A Code object (a sub, a block, a Regex) answers Any's one-element list methods such as
.cache.rx/a/.cacheis(rx/a/,)
combinations-rat-range-sizesRaku++ passesRakudo passes- 1
.combinationsover a non-Int Range of sizes runs from(min + excludes-min).Intto(max - excludes-max).Int, or takes every size when the max is past the list's element count.<a b c>.combinations(2.3..^3.6)includes (a b c)
conformance-list-adverbsRaku++ passesRakudo passes- 1
.rotorwith several sizes cycles through them (.rotor(2, 3)takes 2, 3, 2, 3, …), and a complete trailing window is emitted. - 2
.minand.maxtake:by(&code)as the named spelling of the mapper, and:k/:v/:kv/:p, which report every position attaining the extremum. - 3
The
minandmaxsubs treat a lone Positional or Associative argument as the list, and do not flatten several arguments. - 4
.firsttakes:v,:kvand:pas well as:k, and accepts a Regex matcher. - 5
.sort,.reverse,.unique,.squish,.head,.tail,.skipand.rotor, and their sub forms, return aSeq. - 6
deepmapandduckmapanswer in the invocant's container type andnodemapalways a List; as subs all three are list operators taking a bare first argument.
More from this test: Operators (1), Types & coercion (1).
conformance-phase1-reprRaku++ passesRakudo passes- 2
.kv,.keys,.values,.pairs,.antipairsand.invertreturn aSeqon every container. - 7
.popor.shifton an empty Array returns aFailure— falsy, sowhile @a.shiftterminates — that throwsX::Cannot::Emptywhen the value is used.
More from this test: Hashes & sets (1), Signatures & dispatch (1), Stringification (2), Types & coercion (1).
conformance-phase3-containersRaku++ passesRakudo passes- 2
.splicereturns anArray.
More from this test: Numerics (1), Stringification (1), Syntax & parsing (1).
core-type-roles-and-iterator-defaultsRaku++ passesRakudo passes- 4
A class that does Iterator and defines
pull-onegetspush-exactly,push-all,sink-all,skip-oneand the other default methods built on it, and.cansees them.
More from this test: Classes, roles & the MOP (4), Syntax & parsing (1).
cro-family-clusterRaku++ passesRakudo passes- 1
|%hashinside a list slips the hash's pairs into the list.
More from this test: Hashes & sets (1), Classes, roles & the MOP (2), Regexes & grammars (3), Syntax & parsing (2).
cro-install-engine-fixesRaku++ passesRakudo passes- 6
List.newandArray.newflatten a Slip argument.
More from this test: Concurrency (4), I/O & processes (1), Classes, roles & the MOP (1), Regexes & grammars (1), Signatures & dispatch (7), Strings & Unicode (1), Syntax & parsing (2).
custom-iterator-protocolRaku++ passesRakudo passes- 1
A
forloop over an object with its own.iteratormethod walks the iterator that method returns, whether a user object driven bypull-oneor a built-in iterator. - 2
An object with its own
.iteratoris iterated byforeven when held in a$variable. - 4
A literal
IterationEndin a list ends aforloop there, in block and statement-modifier form, while.mapsees it as an ordinary element that stringifies to its own name. - 5
An iterator's
.skip-oneand.skip-at-leastreturn anInt, not aBool. - 6
.lazymarks a list as lazy, and an iterator over an unordered source reports itself as not deterministic. inferred
More from this test: Containers & assignment (1).
data-generators-clusterRaku++ passesRakudo passes- 1
A Rat index into a lazy sequence reifies it up to that position, as an Int index does.
$seq[($n + 2) / 2]indexes a lazy gather - 2
A Range among several items of an array composer stays a Range; only a sole Range argument spreads.
[<1 8 A>, <Y H>, "0".."9"]has a Range as its third element - 5
pickandrollgiven theWhatevertype object behave as with the*literal.for a ten-element
@l,@l.pick(Whatever).elemsis 10
More from this test: Operators (1), Types & coercion (1).
dbdish-native-and-list-defectsRaku++ passesRakudo passes- 6
The one-argument rule applies inside a
[ … ]composer.
More from this test: Containers & assignment (2), Native types & NativeCall (5), Classes, roles & the MOP (3), Regexes & grammars (3), Signatures & dispatch (1), Syntax & parsing (2).
digest-native-widths-clusterRaku++ passesRakudo passes- 10
|$xslips one level only, even when the list is held in a scalar, so sublists keep their structure.with
$s = ((1, 2), (3, 4)),("A", |$s)has elements of type Str, List, List - 11
reduceandproducefollow the one-argument rule: several arguments stay as they are, and a single Range or Array spreads.reduce { $^a ~ '|' ~ $^b.^name }, 'I', (1, 2), (3, 4)isI|List|List;reduce { $^a + $^b }, 1 .. 4is 10
More from this test: Containers & assignment (2), Numerics (4), Operators (2), Scoping & phasers (1).
divergence-result-typesRaku++ passesRakudo passes- 3
X,Z, their operator forms such asX+andZ+,.grepandxxreturn aSeq. inferred(1 X 2).^nameisSeq - 5
Prefix
|on a single value gives a one-elementSlip. inferred|(1)is aSlip - 8
A sequence generator with a slurpy
@_receives every element produced so far. inferred(1, 2, sub { [*] @_[*-1], @_ + 1 } ... 720)is1 2 6 24 120 720
More from this test: Numerics (3), Operators (2), Types & coercion (1).
duration-slip-fail-destructureRaku++ passesRakudo cannot run it- 3
.pushand.unshiftslip a Slip held in a Scalar variable.@a.push($s)with a Slip in$sadds its elements, not the Slip - 4
The
unshiftsub is the method on its first argument: it answers the array rather than the new length, slips a Slip and type-checks the values.
More from this test: Containers & assignment (1), Dates & times (2), Exceptions & control flow (1).
eager-from-loop-runs-to-lastRaku++ passesRakudo passes- 1
eagerruns an unconditionedSeq.from-loopuntil its body sayslast.eager Seq.from-loop: { $i++; last if $i > 5; $i }does not die with "Cannot eager a lazy list" - 2
A
Seq.from-loopbody whose value isEmpty(such as a falselast if …) adds no element.eager Seq.from-loop: {$i++; last if $i > 5}, {1}is()
ecosweep-900-batchRaku++ passesRakudo passes- 2
[ f() ]spreads the Array a call returns, and spreads an Iterable object through its iterator. - 10
takeof a Slip splices its elements into the gathered sequence. - 11
An endless Range inside an index list clamps to the array's end.
- 14
.appendflattens a sole Range argument into its elements.
More from this test: Containers & assignment (1), I/O & processes (1), Numerics (1), Operators (2), Regexes & grammars (1), Signatures & dispatch (2), Stringification (1), Syntax & parsing (1).
endless-range-reduceRaku++ passesRakudo passes- 1
[+]over an endless Range answers the limit of the series, as.sumdoes.[+] 1..InfisInf - 2
[min]and[max]over an endless Range answer from the range's own bounds. - 3
Any other reduction over an endless Range, and any reduction over an endless lazy list, refuses rather than folding a finite prefix.
More from this test: Stringification (1).
engine-objects-list-as-oneRaku++ passesRakudo passes- 1
An object that is neither Iterable nor Associative (a DateTime, Date, Channel, Lock) lists as itself, one element, under list assignment,
.list,.flat,.elemsand the|slip.my @a = DateTime.new(0)holds one element, andDateTime.new(0).elemsis 1
More from this test: Hashes & sets (1).
exe-nested-class-nativeRaku++ passesRakudo passes- 4
@a[lazy ^N]ends with the array instead of being padded to N elements. inferredAlso held by
exe-nested.
More from this test: Operators (1), Stringification (1).
exe-sub-reads-at-underscoreRaku++ passesRakudo passes- 3
A lazy argument makes the implicit
@_lazy, as it does any*@a.f(1..*)leaves@_lazy
More from this test: Signatures & dispatch (1).
exe-value-semanticsRaku++ passesRakudo passes- 3
[ %$h ]and[ %(…) ]spread the hash's pairs into the array under the one-argument rule.
More from this test: Containers & assignment (1), Hashes & sets (2), Regexes & grammars (1), Signatures & dispatch (1), Types & coercion (1).
fallback-nil-and-slicesRaku++ passesRakudo passes- 3
A literal range subscript honours an exclusive start:
@a[1^..3]skips index 1.@a[1^..3]selects indices 2 and 3
More from this test: Containers & assignment (2), Classes, roles & the MOP (1), Syntax & parsing (1).
finite-lazy-arrayRaku++ passesRakudo passes- 1
A finite list made lazy with
lazyis lazy until it has been read to its end: it refuses what needs its length and renders as[...]/(...).lazy 1..3refuses.elemsand says.is-lazyis True - 2
A
lazylist keeps its laziness through[ ],.Array,.Seqand assignment, and stops being lazy once aforor.eagerhas read it out.
flat-keeps-itemized-hashRaku++ passesRakudo passes- 1
.flatkeeps an itemized Hash whole, as it keeps an itemized List or Array.my $h = %(b => 2); ($h, 1).flatis(${:b(2)}, 1)
flat-squish-and-exit-from-a-workerRaku++ passesRakudo passes- 1
The
flatsub opens each argument one level — an Array argument gives its elements — and then descends only through non-itemized sublists, leaving itemized ones whole. - 2
The
.flatmethod never opens an Array below the top level. - 3
.squishcompares with===by default, and:withsupplies a different comparison.42and"42"are not adjacent duplicates
More from this test: Concurrency (1), Dates & times (1).
flatmap-is-map-then-flatRaku++ passesRakudo passes- 2
.flatmapflattens a nested list in a block's result all the way down, not one level.(1, 2).flatmap({ ($_, ($_, ($_,))) })is fully flat, not(1, (1, (1,)), 2, (2, (2,))) - 3
.flatmapkeeps whole what.flatkeeps whole: an itemized list, an Array's element, and an Array inside an Array.a block result
$($_, $_)stays one element
flatmap-of-gatherRaku++ passesRakudo passes- 1
A
.flatmapblock that returns agathersequence contributes that sequence's elements to the result.(1, 2).flatmap({ gather { take $_ } })spreads the taken elements; it is not()
flatmap-spreads-lazilyRaku++ passesRakudo passes- 1
.flatmapis.mapfollowed by.flat.Also held by
flatmap-is-map-then-flat. - 2
.flatmapis as lazy as the.mapit is built on. - 3
.flatspreads a non-itemized Hash held in a list into its pairs.Also held by
flat-keeps-itemized-hash,flatmap-is-map-then-flat.
for-bigint-rangeRaku++ passesRakudo cannot run it- 1
A
forover a Range whose ends are past int64 walks its real integers.for 2**64 .. 2**64 + 2 -> $iruns three times, starting from 2**64 - 2
An endless Range with a big Int start (
2**64 .. *) keeps its start, in.rakuand when iterated lazily until alast.(2**64 .. *).rakudoes not say9223372036854775807..Inf
for-expression-is-a-listRaku++ passesRakudo passes- 1
A
forused as an expression returns a List, in both the statement-modifier and the block spelling.my \a = ($_ for ^2)andmy $b = (for ^5 { $_ })are both Lists
for-over-listing-valueRaku++ passesRakudo passes- 1
A
forover a value in no container iterates what its.listgives: a Channel's or a Supply's values, a Match's positional captures, a class's ownlist.sub drain(Channel $in) { for $in -> $v { … } }receives the Channel's values
More from this test: Signatures & dispatch (1).
for-over-range-map-streamsRaku++ passesRakudo passes- 1
A
maporgrepblock runs when its result is read, one element at a time, whatever the source is and whoever reads it.for (^3).map({…}) {…}runs in the orderm0 b0 m1 b1 m2 b2Also held by
for-map-streams,map-runs-as-it-is-read.
from-iterator-keeps-its-typeRaku++ passesRakudo passes- 1
Slip.from-iterator($it)answers a Slip.
More from this test: Stringification (1).
gather-coroutine-lazinessRaku++ passesRakudo passes- 1
A
gatherblock runs only when something pulls a value, and only as far as that pull needs. - 2
A
gatherblock's dynamic scope and its exceptions belong to the consumer that pulls from it.
More from this test: Scoping & phasers (1).
gather-in-numeric-contextRaku++ passesRakudo passes- 1
A
gatherSeq that nothing has pulled from yet, used as a number in an arithmetic operator, counts the values it will take, as+$seqand.elemsdo.
gather-late-blockRaku++ passesRakudo passes- 2
An object whose
.iteratorhands out a gather's iterator iterates its values underforand.sort.method iterator { self.dir.iterator }
More from this test: Scoping & phasers (1), Signatures & dispatch (1).
gather-loop-lazy-forRaku++ passesRakudo passes- 1
forover an unfinishedgatheriterates it live, one element at a time, so a consumer that stops early runs the generator no further.a consumer taking one element of
gather loop { take … }runs one take
gather-probe-budgetRaku++ passesRakudo passes- 2
A gather of more than 64 takes renders and compares by all of its elements.
a 100-take gather prints 100 elements and is
is-deeplyits own contents
gather-probe-stops-loopingRaku++ passesRakudo passes- 1
A
gatherassigned to a scalar is lazy: the declaration returns even when its loop never ends and stops taking, and the elements already taken can be read.my $evens = gather for 1 .. * { take $_ if 45 < $_ < 55 }; say $evens[^5]returns and prints instead of hanging
getopt-long-parameter-traitsRaku++ passesRakudo passes- 9
Indexing a non-Positional value with
[0]returns the value itself.(/ ^ (\w+) /[0]).WHATisRegex;42[0]is42
More from this test: Containers & assignment (1), Classes, roles & the MOP (2), Signatures & dispatch (2), Stringification (1), Types & coercion (1), divergences (1).
grand-review-b-parserRaku++ passesRakudo passes- 11
The value of a colonpair with a multi-word angle value is a List, not an Array.
(:a<b c>).valueis a List
More from this test: Compile-time errors (3), Regexes & grammars (2), Signatures & dispatch (1), Strings & Unicode (1), Syntax & parsing (5).
grand-review-c2-methodsRaku++ passesRakudo passes- 4
.uniqueand.repeatedcompare elements with===, so values of different types are distinct.(1, "1", 1e0).unique.elemsis3
More from this test: Hashes & sets (1), I/O & processes (6), Numerics (4), Everything else (1), Strings & Unicode (3).
grand-review-c3b-subscriptsRaku++ passesRakudo passes- 1
A negative number held in a variable is out of range as an array subscript: reading
@a[$i]gives a Failure (X::OutOfRange) and writing throws.
More from this test: Compile-time errors (1).
grand-review-c4b-modules-seqRaku++ passesRakudo passes- 1
The sequence operator
...with Int seeds at or beyond 2**53 steps exactly in integers.(2**53, 2**53 + 1 ... 2**53 + 3).elemsis4
More from this test: Modules (2), Scoping & phasers (1).
head-tail-callable-count-from-endRaku++ passesRakudo passes- 1
A Callable count given to
.head,.tailor.skipis an offset from the end: it is called with 0 and its result is added to the element count.<a b c>.head(*.elems - 1)takes all three elements
hyperwhatever-slice-any-baseRaku++ passesRakudo passes- 1
[**]flattens every leaf, however deep, on any base: anEVALresult, a call, a parenthesised list, a Range or a Seq, not only an@variable.
interp-meta-mixin-block-sig-allomorphRaku++ passesRakudo passes- 6
.tree(N)itemizes every node below the root, so a later.flatdoes not descend into them.
More from this test: Classes, roles & the MOP (1), Regexes & grammars (1), Signatures & dispatch (1), Strings & Unicode (1), Types & coercion (1), divergences (1).
iospec-parts-and-numeric-identityRaku++ passesRakudo passes- 8
A one-parameter
.sortblock is a key extractor, called once per element.
More from this test: I/O & processes (4), Numerics (1), Strings & Unicode (1), Types & coercion (1).
is-deeply-strict-and-anton-batchRaku++ passesRakudo passes- 7
An object answers Any's one-element-list interface:
.elemsis 1,.endis 0,.keysis(0,), and it is its own.head.for
my $w = Widget.new(x => 1),$w.head === $w
More from this test: Hashes & sets (1), I/O & processes (3), Classes, roles & the MOP (3), Operators (3), Everything else (1), Regexes & grammars (2), Signatures & dispatch (1), Syntax & parsing (2).
issue-221-array-list-which-identityRaku++ passesRakudo passes- 1
.WHICHof an Array, a List or a Seq is identity, as===is: stable for the life of the object however it changes, and distinct for two objects holding the same elements.Set.new(@b.item, @c.item)has two elements though both arrays hold 1, 2
More from this test: Hashes & sets (1), Classes, roles & the MOP (1).
issue-68-multidim-endless-rangeRaku++ passesRakudo times out- 1
Under
use v6.e.PREVIEW, an endless Range dimension in a multidimensional subscript stops at the last index of the level it selects from, in plain reads, adverbed forms and slice assignment.for four rows
["a", 1, 2]…["d", 1, 2],@a[0..*; 0]is(a b c d) - 2
A finite Range subscript that overruns the array pads with
(Any)for the missing elements.@a[0..10]on a shorter array has trailing(Any)s
More from this test: Containers & assignment (1), divergences (2).
issue35-zef-after-installRaku++ passesRakudo cannot run it- 5
A lazy
.map(such as one over agather) flattens the Slips its block returns..map(*.Slip)over a gather flattens
More from this test: Containers & assignment (1), Hashes & sets (1), I/O & processes (1), Modules (1), Types & coercion (1).
issue54-interpolated-assertion-capturesRaku++ passesRakudo passes- 4
A Slip produced inside a hyper method call splices its elements into the result.
…>>.<mymatch>>>.Slip>>.Stryields the captured strings flat
More from this test: Regexes & grammars (3).
itemization-and-list-foldsRaku++ passesRakudo passes- 3
list(…)builds a List of its arguments without flattening them; only a lone non-itemized Positional spreads. - 8
.head,.tailand.skipaccept any Callable as their count, not only a WhateverCode. - 9
The
reduceandproducesubs follow the associativity of an&[OP]operator as the methods do, and reducing an empty list with an operator gives that operator's identity.
More from this test: Containers & assignment (1), Numerics (1), Operators (2), Regexes & grammars (1), Stringification (1).
itemized-argument-is-one-itemRaku++ passesRakudo passes- 1
max,min,unique,squish,zipandcrosstake a List or Array held in a$variable as one item.for
my $l = (5, 7):max($l)is the List,unique($l)is((5 7)),zip($l, $m)is(((5 7) (1 2))) - 3
flat($l)of a single List held in a$variable spreads it under the single-argument rule, whileflat($l, 1)keeps it whole. - 4
max(@b),max((5, 7)),max(|$l),sum($l),minmax($l)and a Range held in a variable spread their argument.
More from this test: Containers & assignment (2), Operators (1).
itemized-range-stays-oneRaku++ passesRakudo passes- 1
An itemized Range is one element in a list: the one-argument rule of an array literal,
.flatand an@assignment leave it whole.my @a = (1..2).itemhas one element,((1..2).item, 3).flattwo and[$(1..2)]one
More from this test: Containers & assignment (1).
iterable-object-and-named-subsigRaku++ passesRakudo passes- 1
An object that does Iterable answers the list methods the Iterable role supplies by running its own
.iterator. - 4
.list,.elems,.reverse,.joinand.kvon a user object that does Iterable treat the invocant as one item.
More from this test: Containers & assignment (1), Signatures & dispatch (1).
iteration-buffer-createRaku++ passesRakudo passes- 1
IterationBuffer.CREATEis an empty IterationBuffer that accepts.push.
js-backend-fixes-2026-10-11Raku++ passesRakudo passes- 5
.map(|*)is a WhateverCode that slips, flattening one level. inferred((1, 2), (3, 4)).map(|*).Listis(1, 2, 3, 4) - 6
.max(:by(…))and.min(:by(…))on a Range compare its members by the key, while a bare.maxon a Range is its endpoint. inferredfor
my @vals = 3, 9, 4,(^@vals).max(:by({ @vals[$_] }))is 1;(^3).maxis 3
More from this test: Containers & assignment (2), Operators (1).
langrev-travels-with-codeRaku++ passesRakudo cannot run it- 3
Under 6.d a Str range is a per-position cross product of its endpoints' characters.
("az".."bc")has 52 elements under 6.d
More from this test: Modules (1), divergences (1).
lazy-list-through-slurpyRaku++ passesRakudo passes- 1
A lazy list passed as the sole argument to a
*@aor+@aslurpy stays lazy, so@a.is-lazyis True inside the routine; with several arguments the slurpy collects them.16.polydiv: 16 xx *takes the routine's lazy branch
lazy-seq-past-a-millionRaku++ passesRakudo passes- 1
A lazy Seq is read past its millionth element: element N is read however far it is, and a source that ends is read to its end.
(gather { take $_ for ^1_500_000 }).elemsis not cut off at 1000000Also held by
seq-drain.
lazy-views-are-seqsRaku++ passesRakudo passes- 1
.map,.grepand.skipover a lazy source return Seqs, as they do over a finite list.(0..*).map(* * 2).^nameisSeq
list-array-semantics-sheetRaku++ passesRakudo passes- 1
The list builders
zip,roundrobin, a chainedX,[Z],flat,rotateandxx Infanswer a Seq. inferredzip((1, 2), (3, 4)).rakuis((1, 3), (2, 4)).Seq - 2
reverse()with no arguments throws X::NoZeroArgMeaning, andreversewith several arguments keeps each argument as one element. inferredreverse((1, 2), 3).rakuis(3, $(1, 2)).Seq - 3
.flatleaves an Array's itemized elements whole but spreads a List's elements, and.flat(:hammer)flattens regardless. inferred[1, [2, 3]].flat.rakuis(1, $[2, 3]).Seq;(1, [2, 3]).flat.rakuis(1, 2, 3).Seq - 9
splicevalidates its offset and size with X::OutOfRange, refuses a lazy replacement with X::Cannot::Lazy, and the array it returns keeps the element type. inferredmy @a = 1..3; @a.splice(9)throws X::OutOfRange with whatOffset argument to spliceand range0..3 - 10
.grabremoves the elements it returns; on an empty array it answers Nil, and its counted form answers an empty Seq. inferred[].grab.rakuisNil;[].grab(2).rakuis().Seq - 11
On a lazy list
.elems,.reverse,.sum,.pickand.Captureanswer a Failure, while.sortand.tailthrow X::Cannot::Lazy. inferred(1..*).list.elems.^nameisFailure - 13
appendof a lazy source andpushonto a lazy array throw X::Cannot::Lazy, whilepopon a lazy array answers a Failure. inferred - 14
Array.newfollows the single-argument rule: one Iterable is the list, several arguments are elements, and an itemized Iterable is one element; an endless source stays lazy. inferredArray.new((1, 2)).rakuis[1, 2];Array.new($(1, 2)).rakuis[(1, 2),] - 17
Emptyis a singleton:slip()is that same object, a list method on it short-circuits toEmpty, andEmpty.Listis the empty list. inferredslip() === EmptyisTrue - 19
A negative index answers a Failure carrying X::OutOfRange with range
0..^Inf, a negative:deletelikewise answers a Failure, and a type object is not an index. inferredmy $i = -1; (1, 2)[$i]is a Failure whose exception range is0..^Inf - 24
xxcaches a Seq on its left side so it can be repeated. inferred((1..2).Seq xx 2).rakuis((1, 2), (1, 2)).Seq
More from this test: Containers & assignment (7), Exceptions & control flow (1), Stringification (3), Types & coercion (2).
list-of-undefined-scalarRaku++ passesRakudo passes- 1
An undefined value is one item wherever a list is built from it, as any scalar is; only
Empty, an empty list and a statement that did not run give none.my $x; @$xis(Any,), sofor @$x {}runs once andmy @a = @$xis[Any]Also held by
undef-in-list,undefined-item-sources. - 2
The
@contextualizer makes Nil one item:@(…)of Nil, a missing capture's@<x>included, is(Nil,).
listop-terms-and-empty-container-failuresRaku++ passesRakudo passes- 4
roundrobintakes:slip, which flattens the rounds. - 5
The sub forms
shift @aandpop @aon an empty array return the sameFailureas the method forms. - 7
.producereturns aSeq. - 8
lastinside areduceorproduceblock ends the fold, andproducethen drops its most recent running value.
More from this test: Hashes & sets (1), I/O & processes (1), Syntax & parsing (2).
live-finite-sources-not-lazyRaku++ passesRakudo passeslizmat-nqp-opsRaku++ passesRakudo passes- 5
The nqp list ops operate on an
IterationBuffer, and a positional subscript on one reads the element stored there.
More from this test: Numerics (1), Operators (1), Everything else (1), Types & coercion (1).
loose-prefixes-and-listop-adverbsRaku++ passesRakudo passes- 3
The sub forms of the list routines pass an adverb they understand to the method instead of treating it as a list element.
unique @a, as => {.abs}uniques only the elements of@a
More from this test: Operators (1), Syntax & parsing (1).
map-grep-under-first-stop-earlyRaku++ passesRakudo passes- 1
A
.firstor.headover a.map/.grepchain runs the blocks only until it has its answer.@handlers.map({ … }).grep(*.so).firststops at the first true result - 2
.firstwith no matcher over a lazy.mapruns the block and answers the first mapped value, and over an endless.grepruns the block only until the first hit. inferred(1..*).map(…).firstis not Nil
map-return-in-list-assignmentRaku++ passesRakudo passes- 1
List assignment is eager: inside a routine,
my @x = (…).map({ return 5 if …; … })runs the map at the assignment, so thereturnleaves the routine.
map-runs-as-it-is-readRaku++ passesRakudo passes- 2
What a
maporgrepanswers is a list to every reader (a method, an operator, a routine, a parameter, a loop), even though its block has not run when the reader gets it.Also held by
map-result-readers.
math-sparsematrix-installRaku++ passesRakudo passes- 3
Reading an element out of a List does not itemize it, so a sublist taken from a List flattens into a slurpy parameter.
a sublist
("b", "c")read from a List reaches*@indexesas two strings
More from this test: Native types & NativeCall (2), Classes, roles & the MOP (1), Operators (2).
method-not-found-unthrownRaku++ passesRakudo passes- 3
A hyper method call over an Array or a Hash stores a Nil answer as Any, while over a List the Nil is kept.
More from this test: Signatures & dispatch (1).
min-max-mapper-after-adverbRaku++ passesRakudo passes- 1
The mapper of
.min,.maxand.minmaxis the first Code argument wherever it sits among the arguments, so@a.min(:k, { … })applies it;:by(&code)is the equivalent named spelling.
minmax-real-rangeRaku++ passesRakudo passes- 1
.minmaxover Rats or Nums answers a Range, as over Ints or Strs, so.minmax.boundsworks.
More from this test: Numerics (1).
missing-routines-batchRaku++ passesRakudo passes- 1
A
Range, like an Array or List, answers.AT-POS,.EXISTS-POSand.sliceas the list it stands for. - 2
$range.in-range($v)is True for a value inside the range and otherwise throwsX::OutOfRangenaming the value, rather than returning a Failure. - 4
A
Codeobject is a one-element list for.kv,.pairs,.keysand.values.
More from this test: Dates & times (1), Hashes & sets (1), Regexes & grammars (1), Stringification (1), Strings & Unicode (1).
modifier-for-drains-an-iteratorRaku++ passesRakudo passes- 1
The statement-modifier form
EXPR for CONTAINERiterates an object through its own.iterator, exactly as the block form does.is $_, ++$value for @aruns once per element of a class with its own.iterator
modifier-for-over-endless-rangeRaku++ passesRakudo passes- 1
The statement-modifier form
EXPR for 1..*runs for as long as the range does, with no cap on iterations, as the block formfor 1..* { … }does.$n++ for 1..*does not stop with$nat 10000
modinfo-ecosystem-clusterRaku++ passesRakudo passes- 19
A
|slip flattens inside an array composer.with
@a = <x y>,[|@a, @a[0]]is["x", "y", "x"]
More from this test: Hashes & sets (1), I/O & processes (1), Operators (1), Regexes & grammars (3), Scoping & phasers (2), Signatures & dispatch (3), Syntax & parsing (7), Types & coercion (1).
module-fixes-batch-1Raku++ passesRakudo passes- 1
forover aBloborBufiterates its elements, unless the value sits in a Scalar container, where it is one item. inferredfor blob32.new(1,2,3,4) { }runs 4 times;my $b = …; for $b { }runs onceAlso held by
blob-iteration-and-mutate-lvalue.
More from this test: Regexes & grammars (1), Signatures & dispatch (1), Syntax & parsing (1).
negative-subscriptRaku++ passesRakudo cannot run it- 2
The positional methods such as
.AT-POSdo not index from the end for a negative index.
More from this test: Compile-time errors (1).
nqp-iterator-buffer-and-bindattrRaku++ passesRakudo passes- 1
.iterator.push-all($buffer)fills an IterationBuffer target..iterator.push-all(my $ib := IterationBuffer.new)leaves the values in$ib
More from this test: Containers & assignment (1), Types & coercion (1).
object-cmp-by-stringyRaku++ passesRakudo passes- 2
sort,min,max,[max],Zcmpandbeforeover objects order them bycmp's rule, the same from run to run. - 3
sort,minandmaxgiven&infix:<cmp>or&[cmp]use it as a two-argument comparator, so a usermulti infix:<cmp>passed to them is called.
More from this test: Operators (1).
one-arg-rule-and-qw-allomorphsRaku++ passesRakudo passes- 2
List.new(...)takes its arguments as elements without flattening them, whileArray.newflattens.List.new([1,2])is a one-element list holding the Array - 3
A single Hash inside an array literal spreads under the one-argument rule.
[%h]is the hash's Pairs and[{}]is the empty array
More from this test: Syntax & parsing (1).
pdf-family-2026-09Raku++ passesRakudo passes- 19
A non-nodal hyper method call splices a Slip the method returns into the result.
More from this test: Containers & assignment (8), Exceptions & control flow (1), I/O & processes (1), Modules (1), Numerics (1), Classes, roles & the MOP (14), Operators (1), Regexes & grammars (3), Scoping & phasers (4), Signatures & dispatch (9), Syntax & parsing (11), Types & coercion (3).
pick-negative-and-combinations-rangeRaku++ passesRakudo passes- 1
.pickwith a negative count on a large Range picks nothing.(1..5000).pick(-1)is empty - 2
.pickwith a negative count on a list is refused.(1,2,3).pick(-1)is refused - 3
.combinationsgiven a Range of sizes that begins below zero starts at size 0.(1,2,3).combinations(-9223372036854775808..1)comes back instead of stepping through every size from the range's start
plain-object-any-list-methodsRaku++ passesRakudo passes- 1
A plain object answers Any's list methods —
.max,.min,.Seq,.is-lazy,.invert,.classify,.deepmap,.flatmap,.repeated,.pairup,.produce,.hashand the rest — as a one-item list.class P { }; P.new.maxdoes not die - 2
A plain object answers the subscript protocol (
.AT-POS,.EXISTS-KEY): position 0 is the object, another position is out of range, no key exists and nothing is deleted. - 4
.maxpairsof a scalar keys its pair by the Int 0, not the Str.
More from this test: Exceptions & control flow (1).
rakudo-t-language-gaps-1Raku++ passesRakudo passes- 7
An
@constant keeps a lazy Seq lazy.
More from this test: Compile-time errors (1), Containers & assignment (1), Classes, roles & the MOP (2), Operators (1), 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- 1
for $slipiterates the elements of a Slip held in a scalar. - 4
cmpbetween an endless Seq and a finite list reads the Seq only as far as needed.
More from this test: Compile-time errors (1), Exceptions & control flow (2), Hashes & sets (1), Operators (2), Regexes & grammars (4), Scoping & phasers (1), Signatures & dispatch (1), Syntax & parsing (1).
rakudo-t-language-gaps-3Raku++ passesRakudo passes- 4
.minpairsand.maxpairstake a key extractor or a comparator. - 5
.minmax(&key)over Ranges reads them by their ends and keeps their exclusions.
More from this test: Compile-time errors (2), Containers & assignment (1), Modules (1), Classes, roles & the MOP (1), Operators (2), Regexes & grammars (1), Scoping & phasers (1), Signatures & dispatch (1), Stringification (1), Syntax & parsing (1).
rakudo-t-language-gaps-6Raku++ passesRakudo passes- 4
.BIND-POSreifies a lazy array up to the position and refuses a negative position.
More from this test: Operators (2), Regexes & grammars (1), Syntax & parsing (1).
rakuglaze-round-4Raku++ passesRakudo passes- 9
A lazy list has no
.elems, and a Seq does not bind to an@-sigiled name. inferred
More from this test: Exceptions & control flow (4), Hashes & sets (2), Classes, roles & the MOP (1), Operators (1), Scoping & phasers (1), Signatures & dispatch (1), Types & coercion (2).
rakuglaze-round-5Raku++ passesRakudo passes- 2
@$listover a lazy list keeps its source rather than reifying it.
More from this test: Concurrency (1), Containers & assignment (1), Scoping & phasers (1), Types & coercion (1).
rakuglaze-round-6Raku++ passesRakudo passes- 4
deepmapover an Array assigns its leaves into the result's containers, so aNilleaf becomesAny. - 5
A
[…]nested as the sole content of an array composer spreads under the one-argument rule. inferred
More from this test: Concurrency (1), Exceptions & control flow (1), Hashes & sets (2), I/O & processes (1), Classes, roles & the MOP (1), Regexes & grammars (1), Scoping & phasers (1), Syntax & parsing (2).
range-construction-and-membershipRaku++ passesRakudo passes- 1
Range.newconstructs a Range. - 2
A Range's element type follows its start, not its end.
1..4.9yields(1, 2, 3, 4) - 4
.int-boundssubtracts for an excluded end only when that end is integral, has a two-argument form, and is defined on infinite ranges.(0..^5.5).int-boundsis(0, 5) - 8
eager $rangereifies the Range rather than handing the Range back.
More from this test: Numerics (2), Operators (1), Types & coercion (1).
range-endpoint-objectsRaku++ passesRakudo passes- 2
minmaxbuilds its Range by the same endpoint rule as.., except that twoStrextremes stayStrs.
More from this test: Types & coercion (1).
range-endpoints-and-adverbsRaku++ passesRakudo passes- 1
.minand.maxon a Range honour their adverbs.(2..6).min(:k)is0 - 2
A Str on the left of
..coerces nothing, so the range iterates strings."1"..9yields the strings "1" through "9" - 3
A Real on the left of
..coerces a Str right endpoint to a number.1 .. "5"has a numeric end - 4
An endless range iterates by stepping from its actual start, whether a fraction or a string.
(1.5..*)starts at 1.5 and("d"..*)at "d" - 5
A range starting at -Inf, Inf or NaN does not iterate upward from an integer limit. inferred
range-pick-excluded-endpointRaku++ passesRakudo passes- 1
.pickand.rollon an integer Range honour its excluded endpoints at any size.(^1024).pickis never 1024 and(0^..1024).pickis never 0
reduce-assoc-and-classify-asRaku++ passesRakudo passesreturned-map-is-lazyRaku++ passesRakudo passes- 1
A
maporgrepthat is a routine's or closure's value is a lazy Seq whose block runs only for the elements the caller reads..headof a returned map does not run the block for a later element that would die
returned-map-read-by-builtinsRaku++ passesRakudo passes- 1
A
maporgrepSeq returned from a routine is read whole by the built-in subs and operators that walk their arguments:flat,slip,cache,zip,cross,any,first, infixXand the triangle reduce[\+].flat(f(), $x)withfreturning a.mapholds the mapped elements
roast-3log-batch1Raku++ passesRakudo passes- 3
.reducewith a block whose accumulator parameteris rawfolds the elements' containers. - 4
A
forover the value of a block that ends on a variable iterates that variable's container. inferred
More from this test: Dates & times (1), Exceptions & control flow (2), Hashes & sets (1), I/O & processes (3).
roast-last-filesRaku++ passesRakudo passes- 8
A nested positional slice keeps the shape of its index list, and a missing element drops out of its own level. inferred
("a".."z")[(3, (4, (5,)))]is("d", ("e", ("f",)))and(^10)[1..2, 3]is((1, 2), 3) - 9
An element past the end of a List or Range is
Nil, where an Array's isAny. inferred
More from this test: Compile-time errors (1), Containers & assignment (2), Numerics (3), Classes, roles & the MOP (1), Operators (1), Scoping & phasers (2).
roast-sweep-runtimeRaku++ passesRakudo cannot run it- 6
A hyper method call over a Seq reads the Seq once. inferred
- 11
deepmapover a typed array keeps the array's type when the results fit it. inferred - 31
A lazy array's
.cloneshares its generator but not its storage. inferred - 47
A
mapis lazy: areturnin its block that runs after the enclosing routine has left throwsX::ControlFlow::Return. inferred - 48
lastends amapover an endless source, and sinking thatmapruns 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), Modules (2), Classes, roles & the MOP (8), Operators (4), Everything else (1), Regexes & grammars (1), Scoping & phasers (14), Stringification (1), Strings & Unicode (1), Types & coercion (3).
rotor-sub-6eRaku++ passesRakudo passes- 1
Under
use v6.e.PREVIEW, therotorsub takes the cycle first and the iterable as its last positional, the reverse of the method, and:partialmay follow the iterable.rotor(3, 'a'..'h')is(a b c),(d e f)Also held by
splice-rotor-rettype-and-placeholders.
roundrobin-single-argumentRaku++ passesRakudo passes- 1
roundrobinfollows the single-argument rule: a lone list or Range argument is spread into its elements, which are the lists it takes turns between.roundrobin ((1, 2, 3), (4, 5), (6, 7, 8, 9))takes turns between the three lists, not nine rounds of one - 2
A lone Array given to
roundrobinhas containers for elements, each of which is one item.
rw-returns-and-container-traitsRaku++ passesRakudo passes- 4
List.from-iterator($it)andArray.from-iterator($it)drain an iterator into a container of that type.List.from-iterator((1, 2, 3).iterator).rakuis(1, 2, 3)
More from this test: Containers & assignment (2), Stringification (1), Types & coercion (1).
seq-generator-shapesRaku++ passesRakudo passes- 1
A sequence may consist of a generator closure alone with no seed values, as in
{ 3+2 } ... *.
seq-lol-and-callable-namedRaku++ passesRakudo passes- 5
The reducing list methods can be called on an undefined invocant. inferred
More from this test: Containers & assignment (2), Operators (3), Signatures & dispatch (1).
seq-pulled-on-demandRaku++ passesRakudo passes- 1
Seq.new($iterator)pulls from its iterator only as the Seq is read, not when the Seq is made. - 2
A PredictiveIterator's
.count-onlyanswers a Seq's.elemsand.Numericwithout pulling any value, and lets.tailskip to the end. - 3
.squish(:as, :with)calls its callbacks lazily, once per element and once per adjacent pair, as the reader reaches them. - 5
Buf.iteratoriterates the Buf's elements, not the Buf as one item.
More from this test: Signatures & dispatch (1).
seq-read-onceRaku++ passesRakudo passes- 1
A second iteration of a
Seqthat was not cached throwsX::Seq::Consumed. - 2
Every use that keeps a Seq's values (
.elems,.Bool,.Str,$s[0],@$s, an operator, a built-in sub, an@parameter) caches the Seq, after which it can be read any number of times. - 3
.sinkon the Seq of agatherruns the gather's block.
sequence-generator-exclusive-endpointRaku++ passesRakudo passes- 1
A generator sequence with
...^stops at its excluded endpoint however it is read: printed, joined, assigned to an array, counted or indexed.{ $++ } ...^ 5stops before 5 - 2
A Range on the right of
...is a list whose first element is the endpoint and whose rest follows the sequence, for a lone generator too.{ $++ } ... ^5is 0 then 1..4
set-iterates-pairsRaku++ passesRakudo passes- 2
.flat(:hammer)flattens what plain.flatkeeps whole: an itemized list or Hash and an Array's elements.
More from this test: Hashes & sets (1).
set-ops-reduce-max-adverbsRaku++ passesRakudo passes- 5
.max/.minwith:k/:v/:kv/:pon an empty collection answer an empty List, not ±Inf.
More from this test: Hashes & sets (2), Operators (2).
shaped-array-assignRaku++ passesRakudo passes- 1
A shaped array iterates as its leaves in row-major order: assignment to a plain array,
for,flat,|and.Arrayall see every leaf.for
my @a[3;2],my @flat = @ahas six elements - 2
.elemsof a shaped array is its first dimension,.rakushows the rows, and binding it to an@aparameter keeps the shape.for
my @a[3;2],@a.elemsis 3
slice-list-with-endless-rangeRaku++ passesRakudo passesslices-trans-and-exact-sequencesRaku++ passesRakudo passes- 8
An arithmetic sequence over Rats stays exact.
⅓, ⅔ … 30hits 15, so.first(15)matches
More from this test: Hashes & sets (3), Regexes & grammars (1), Strings & Unicode (2), Syntax & parsing (1).
slip-array-elements-stay-itemsRaku++ passesRakudo passes- 1
|@apasses an Array's elements as the items they are, so a*@slurpy does not flatten the lists among them, while a List's elements, which are not in Scalars, still flatten.f(|@a)for@a = 1, [2, 3]does not give the slurpy[1, 2, 3]
slip-of-unpulled-gatherRaku++ passesRakudo passes- 1
.Slipof agatherSeq that nothing has pulled from yet splices all of its values into amaporfor.(gather { take 1; take 2 },).map(*.Slip)is not()
splice-hash-element-2026-09-02Raku++ passesRakudo passes- 1
A Hash among the replacement arguments of
spliceis one element, itemized or not; only|%hflattens it, into named arguments thatspliceignores.@a.splice($i, 0, %h)inserts one Hash element
splice-rotor-rettype-and-placeholdersRaku++ passesRakudo passes- 1
.splice(*-2, *-1)resolves a WhateverCode start against the array's length and a WhateverCode count against what is left after the start.
More from this test: Hashes & sets (1), Signatures & dispatch (1), Strings & Unicode (1).
statistics-distributions-clusterRaku++ passesRakudo passes- 5
.flat(:hammer)flattens through itemized containers, while:hammer(False)and plain.flatkeep itemized Arrays whole.
More from this test: Classes, roles & the MOP (1), Signatures & dispatch (2), Syntax & parsing (1).
str-range-bounds-and-runawayRaku++ passesRakudo passes- 1
A Str range is empty when its raw endpoints satisfy
min gt maxas whole strings, whatever their lengths."Y".."AB"and'fig'..'banana'are empty - 2
A non-empty Str range always emits its first endpoint; each successor is then tested against both the end value and the end value's length.
'aa'..'b'is not empty, and'a'..'aa'is not just the alphabet - 3
The length test of a Str range counts codepoints, not bytes.
- 4
...between two single-codepoint strings walks the codepoints, as..does.'☀' ... '☕'steps from U+2600 to U+2615
More from this test: divergences (1).
sunk-construct-sinks-its-valueRaku++ passesRakudo passes- 1
A sunk
if,else,with,given, matchedwhenordefault,CATCH,.tapblock orwheneversinks its block's value, so a lazy Seq handed back there runs, while in a value position the value is kept as it is.f() if $c;runs the gather or lazy map thatfreturns
superscript-call-but-bool-redo-copy-and-friendsRaku++ passesRakudo passes- 4
nextinside aduckmapblock drops the element.
More from this test: Exceptions & control flow (1), I/O & processes (1), Signatures & dispatch (2), Stringification (1), Syntax & parsing (1), Types & coercion (1).
todo-small-divergencesRaku++ passesRakudo passes- 3
An Array's
.kvitemizes its nested containers. - 8
A Range with a fractional endpoint used as a subscript slices by the Range's members.
- 12
my @a = <lazy seq>makes an Array.
More from this test: Concurrency (1), Containers & assignment (2), Classes, roles & the MOP (2), Operators (1), Regexes & grammars (1), Scoping & phasers (2), Stringification (3), Types & coercion (3).
top100-four-roots-2026-09-02Raku++ passesRakudo cannot run it- 1
zipcalled with one iterable argument treats that argument as the list of lists to zip.zip(((1,2),(3,4))).rakuis((1, 3), (2, 4)).Seq;zip((1,2,3)).rakuis((1, 2, 3),).Seq
More from this test: Modules (1), Native types & NativeCall (1), Operators (1), Everything else (1).
top100-roots-2026-09-02Raku++ passesRakudo does not pass- 23
An empty Slip is undefined, so
withdoes not run its block for one.Empty.definedis False
More from this test: Containers & assignment (1), Exceptions & control flow (2), Modules (1), Native types & NativeCall (3), Numerics (1), Classes, roles & the MOP (4), Regexes & grammars (3), Scoping & phasers (1), Stringification (1), Strings & Unicode (2), Syntax & parsing (3), Types & coercion (6).
tries-with-frequenciesRaku++ passesRakudo passes- 5
.sortwith a two-argument comparator that answers a Bool still orders the list, because the merge takes the right element only when the comparator's result is greater than 0. - 6
.append($[…])adds an itemized array as one element.
More from this test: Hashes & sets (1), Classes, roles & the MOP (1), Operators (2), Signatures & dispatch (1).
type-objects-as-lists-and-adverbsRaku++ passesRakudo passes- 1
A type object has no elements, so
.pairs,.antipairs,.kv,.keys,.valuesand.invertare empty and.reduceisNil, yet.map,.sort,.grepand.uniquesee it as a one-element list. - 2
minmax, as sub or method, takes a mapper (positional or:by) that orders the comparison while the resulting endpoints stay the original elements. - 3
The
classifyandcategorizesubs treat adverbs such as:asas options, not list elements.categorize(&f, @list, :as(&g))categorizes only@list - 4
.repeatedtakes:asto compare mapped values and:withto supply the comparison.
typed-params-and-upto-loopsRaku++ passesRakudo passes- 2
A
forover^NorA..^Bwith a fractional endpoint iterates every integer step below the endpoint, not only those below its integer part.for ^2.5andfor 0..^2.5do not stop at 1
whatever-sub-and-modifier-declRaku++ passesRakudo passes- 3
A
Slipargument always flattens intogrep's list of values, even among several arguments.
More from this test: Operators (1), Scoping & phasers (1).