A sequence containing the same elements as this sequence, but on which some operations, such as map
and filter
, are implemented lazily.
SDK
- Xcode 8.0+
Framework
- Swift Standard Library
A sequence containing the same elements as this sequence, but on which some operations, such as map
and filter
, are implemented lazily.
SDK
Framework
func for Each(((key: Key, value: Value)) -> Void)
Calls the given closure on each element in the sequence in the same order as a for
-in
loop.
func enumerated() -> Enumerated Sequence<Dictionary<Key, Value>>
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 make Iterator() -> Dictionary<Key, Value>.Iterator
Returns an iterator over the dictionary’s key-value pairs.
var underestimated Count: Int
A value less than or equal to the number of elements in the collection.