@mikuroxina/mini-fn
    Preparing search index...

    Function alter

    • Alters entry with the key. This lets you insert, modify and remove an entry.

      Type Parameters

      • V

      Parameters

      • updater: (oldEntry: Option.Option<V>) => Option.Option<V>

        Function to make a new value from the old one. If the entry was not found, oldEntry will be None. When this returned None, the entry will be removed.

      Returns <K>(key: K) => (m: Map<K, V>) => Map<K, V>

      A new Map with the replaced entry.