struct JoinedByClosureSequence<Base, Separator> where Base : Sequence, Separator : Sequence, Base.Element : Sequence, Separator.Element == Base.Element.Element
A sequence that presents the elements of a base sequence of sequences concatenated using a given separator that depends on the sequences right before and after it.
func joined<Separator>(by separator: (Element, Element) throws -> Separator) rethrows -> [Element.Element] where Separator : Sequence, Separator.Element == Self.Element.Element
Returns the concatenation of the elements in this sequence of sequences, inserting the separator produced by the closure between each sequence.
func joined<Separator>(by separator: @escaping (Element, Element) -> Separator) -> JoinedByClosureCollection<Elements, Separator> where Separator : Collection, Separator.Element == Self.Element.Element
Returns the concatenation of the elements in this collection of collections, inserting the separator produced by the closure between each sequence.
func joined<Separator>(by separator: @escaping (Element, Element) -> Separator) -> JoinedByClosureSequence<Elements, Separator> where Separator : Sequence, Separator.Element == Self.Element.Element
Returns the concatenation of the elements in this sequence of sequences, inserting the separator produced by the closure between each sequence.