RLMKeyValueIterator
@frozen
public struct RLMKeyValueIterator<Key, Value> : IteratorProtocol where Key : _MapKey, Value : RealmCollectionValue
An iterator for Map<Key, Value>
which produces (key: Key, value: Value)
pairs for each entry in the map.
-
Declaration
Swift
public typealias Element = (key: Key, value: Value)
-
Advance to the next element and return it, or
nil
if no next element exists.Declaration
Swift
public mutating func next() -> Element?