Skip to content

Commit 0157b09

Browse files
committed
Some small corrections to publish
Please @p6steve send me your email address so that I can invite you to the WordPress blog and assign authorship of the article once you've accepted.
1 parent 3be31cb commit 0157b09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

20th/articles/rfc54.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The [allomorph](https://docs.raku.org/language/glossary#index-entry-Allomorph) t
1818

1919
Returns either Order::Less, Order::Same or Order::More object. Compares Pair objects first by key and then by value etc.
2020

21-
Evaluates Lists by comparing element @a[$i] with @b[$i] (for some Int $i, beginning at 0) and returning Order::Less, Order::Same, or Order::More depending on if and how the values differ. If the operation evaluates to Order::Same, @a[$i + 1] is compared with @b[$i + 1]. This is repeated until one is greater than the other or all elements are exhausted. If the Lists are of different lengths, at most only $n comparisons will be made (where $n = @a.elems min @b.elems). If all of those comparisons evaluate to Order::Same, the final value is selected based upon which List is longer.
21+
Evaluates Lists by comparing element `@a[$i]` with `@b[$i]` (for some `Int $i`, beginning at 0) and returning `Order::Less`, `Order::Same`, or `Order::More` depending on if and how the values differ. If the operation evaluates to Order::Same, `@a[$i + 1]` is compared with `@b[$i + 1]`. This is repeated until one is greater than the other or all elements are exhausted. If the Lists are of different lengths, at most only $n comparisons will be made (where `$n = @a.elems min @b.elems`). If all of those comparisons evaluate to Order::Same, the final value is selected based upon which List is longer.
2222

2323
If `$a eqv $b`, then `$a cmp $b` always returns Order::Same. Keep in mind that certain constructs, such as Sets, Bags, and Mixes care about object identity, and so will not accept an allomorph as equivalent of its components alone.
2424

0 commit comments

Comments
 (0)