content/flux/v0/stdlib/dict/remove.md
dict.remove() removes a key value pair from a dictionary and returns an updated
dictionary.
(dict: [A:B], key: A) => [A:B] where A: Comparable
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
({{< req >}}) Dictionary to remove the key-value pair from.
({{< req >}}) Key to remove from the dictionary. Must be the same type as existing keys in the dictionary.
import "dict"
d = [1: "foo", 2: "bar"]
dict.remove(dict: d, key: 1)// Returns [2: "bar"]