• lookup looks up the provided key in the map (with the provided Eq instance), and returns the corresponding value if it exists.

    Complexity: O(n)

    Type Parameters

    • K

    • V

    Parameters

    • eq: Eq<K>
    • key: K
    • map: Readonly<Map<K, V>>

    Returns Maybe<V>

Generated using TypeDoc