Type Alias

Entity.ChildCollection.IndexingIterator.SubSequence

No overview available.

Declaration

typealias SubSequence = AnySequence<Entity.ChildCollection.IndexingIterator<Elements>.Element>

See Also

Splitting and Joining Entities

func split(maxSplits: Int, omittingEmptySubsequences: Bool, whereSeparator: (Elements.Element) -> Bool) -> [ArraySlice<Elements.Element>]

Returns the longest possible subsequences of the sequence, in order, that don’t contain elements satisfying the given predicate. Elements that are used to split the sequence are not returned as part of any subsequence.

func split(separator: Elements.Element, maxSplits: Int, omittingEmptySubsequences: Bool) -> [ArraySlice<Elements.Element>]

Returns the longest possible subsequences of the sequence, in order, around elements equal to the given element.

func joined() -> FlattenSequence<Entity.ChildCollection.IndexingIterator<Elements>>

Returns the elements of this sequence of sequences, concatenated.

func joined<Separator>(separator: Separator) -> JoinedSequence<Entity.ChildCollection.IndexingIterator<Elements>>

Returns the concatenated elements of this sequence of sequences, inserting the given separator between each element.

func joined(separator: String) -> String

Returns a new string by concatenating the elements of the sequence, adding the given separator between each element.