From 977f167834c188d9121797371a4490f30ac1946b Mon Sep 17 00:00:00 2001 From: ZayanKhan-12 <108294002+ZayanKhan-12@users.noreply.github.com> Date: Wed, 22 Jul 2026 14:47:13 -0400 Subject: [PATCH] Fix broken cross-reference in Keyed guide MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guides/Keyed.md links Index.md, which does not exist; the guide it means to reference is Indexed.md, documenting indexed() (the package has no index(by:) method — the label is updated to match). Co-Authored-By: Claude Fable 5 --- Guides/Keyed.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Guides/Keyed.md b/Guides/Keyed.md index 33c5f08d..9c9fe787 100644 --- a/Guides/Keyed.md +++ b/Guides/Keyed.md @@ -67,7 +67,7 @@ Calling `keyed(by:)` is an O(_n_) operation. 1. Java's `toMap` is referring to `Map`/`HashMap`, their naming for Dictionaries and other associative collections. It's easy to confuse with the transformation function, `Sequence.map(_:)`. 2. C#'s `toXXX()` naming doesn't suite Swift well, which tends to prefer `Foo.init` over `toFoo()` methods. -3. Ruby's `index_by` naming doesn't fit Swift well, where "index" is a specific term (e.g. the `associatedtype Index` on `Collection`). There is also a [`index(by:)`](Index.md) method in swift-algorithms, is specifically to do with matching elements up with their indices, and not any arbitrary derived value. +3. Ruby's `index_by` naming doesn't fit Swift well, where "index" is a specific term (e.g. the `associatedtype Index` on `Collection`). There is also a [`indexed()`](Indexed.md) method in swift-algorithms, is specifically to do with matching elements up with their indices, and not any arbitrary derived value. #### Alternative names