Instance Method

makeIterator()

Returns an iterator over the members of the set.

Declaration

func makeIterator() -> Set<Element>.Iterator

Relationships

From Protocol

See Also

Iterating over a Set

func enumerated() -> EnumeratedSequence<Set<Element>>

Returns a sequence of pairs (n, x), where n represents a consecutive integer starting at zero and x represents an element of the sequence.

func forEach((Element) -> Void)

Calls the given closure on each element in the sequence in the same order as a for-in loop.

var underestimatedCount: Int

A value less than or equal to the number of elements in the collection.