Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stdlib/public/core/Join.swift
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ extension Sequence where Iterator.Element : Sequence {
/// sequence's elements.
/// - Returns: The joined sequence of elements.
///
/// - SeeAlso: `flatten()`
/// - SeeAlso: `joined()`
public func joined<Separator : Sequence>(
separator: Separator
) -> JoinedSequence<Self>
Expand Down
4 changes: 2 additions & 2 deletions stdlib/public/core/SequenceAlgorithms.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -615,15 +615,15 @@ extension Sequence {
/// // [1, 2, 2, 3, 3, 3, 4, 4, 4, 4]
///
/// In fact, `s.flatMap(transform)` is equivalent to
/// `Array(s.map(transform).flatten())`.
/// `Array(s.map(transform).joined())`.
///
/// - Parameter transform: A closure that accepts an element of this
/// sequence as its argument and returns a sequence or collection.
/// - Returns: The resulting flattened array.
///
/// - Complexity: O(*m* + *n*), where *m* is the length of this sequence
/// and *n* is the length of the result.
/// - SeeAlso: `flatten()`, `map(_:)`
/// - SeeAlso: `joined()`, `map(_:)`
public func flatMap<SegmentOfResult : Sequence>(
_ transform: @noescape (${GElement}) throws -> SegmentOfResult
) rethrows -> [SegmentOfResult.${GElement}] {
Expand Down