Not type

Negation. Intended use - in pattern matching.

Methods

=~(x:Any, n:Not, mc:MatchContext) Source: stdlib.ngs:1339
Negate the match

Returns

Bool
fields(e:Eachable2, n:Not) Source: stdlib.ngs:3936
Remove fields matching the pattern. Same as e.fields(Not(AnyOf(n.pattern))). In some other languages, similar functionality is called "project".

Parameters

nNot(Arr)

Example

{"a": 1, "b": 2}.fields(Not(%[a c d]))  # {"b": 2}
init(n:Not, pattern:Any) Source: stdlib.ngs:1068
Undocumented