For example, the unlabeled one in hasAdfix
here:
public extension Collection {
/// Remove the beginning or end of a `Collection`.
/// - Parameters:
/// - adfix: A prefix or suffix.
/// - hasAdfix: Whether a collection is adfixed by `adfix`.
/// - drop: Create a `SubSequence` by removing…
/// - count: …this many `Element`s.
/// - Returns: `nil` if `hasAffix(affix)` is `false`.
func without<Adfix: Sequence>(
adfix: Adfix,
hasAdfix: (Adfix) -> Bool,
drop: (_ count: Int) -> SubSequence
) -> SubSequence?
where Element == Adfix.Element {
guard hasAdfix(adfix)
else { return nil }
return drop(adfix.count)
}
}
Related Issue (progress seems to have been made?): [SR-3693] Can't document function's closure parameter · Issue #46278 · apple/swift · GitHub