Skip to content
FutureBlitz

    Install

    Import std.collections.view

    ReadOnlyMap

    std.collections.view

    class

    @DebugEntries Public Class ReadOnlyMap<K: Hashable, V> Implements Iterable<(K, V)>

    A Map to read but not change, which AsReadOnly gives.

    std/collections/view.fb, line 193

    • Public Property Count: Int property #

      How many entries it holds.

    • @PanicsAtCaller Operator [](key: K): V operator #

      The key's value, or the Map's default when it isn't there, or a panic when it has none.

    • Public Method Get(key: K): V? method #

      The value of key, or Null when it has none.

    • Public Method Get(key: K, fallback: V): V method #

      The value of key, or fallback when it has none.

    • Public Method Contains(key: K): Bool method #

      Whether key has an entry.

    • Public Method Keys(): K[] method #

      Its keys, in order, in a new array.

    • Public Method Values(): V[] method #

      Its values, in order, in a new array.

    • Public Method ToMap(): Map<K, V> method #

      The entries, in a new Map, which can change.

    • Public Method Iterate(): MapIterator<K, V> method #

      The Map's entries, in order.

    Report an issue with this page or with FutureBlitz on GitHub.