Each type

Hash pattern key. x =~ {Each(K): V} matches when every key of x matching K has a value matching V. No matching keys is a match.

Example

({"a": 1, "b": 1, "c": "x"}) =~ ({Each(AnyOf("a", "b")): Int})
({"a": 1, "b": "x"}) !~ ({Each(AnyOf("a", "b")): Int})
({"c": "x"}) =~ ({Each(AnyOf("a", "b")): Int})

Methods

init(e:Each, pattern:Any) Source: stdlib.ngs:1346
Undocumented