mirror of
https://github.com/apple/swift-algorithms
synced 2026-11-24 04:17:48 +00:00
Update Indexed.swift (#8)
This commit is contained in:
1 parent
af3eab4fb5
commit
cffb44dceb
1 file changed
+1
-1
@@ -68,7 +68,7 @@ extension Collection {
|
||||
///
|
||||
/// let names: Set = ["Sofia", "Camilla", "Martina", "Mateo", "Nicolás"]
|
||||
/// var shorterIndices: [Set<String>.Index] = []
|
||||
/// for (i, name) in zip(names.indices, names) {
|
||||
/// for (i, name) in names.indexed() {
|
||||
/// if name.count <= 5 {
|
||||
/// shorterIndices.append(i)
|
||||
/// }
|
||||
|
||||
Reference in new issue
Block a user