AllOf type

Should probably inherit from Set, not ArrLike.

Direct parent types

ArrLike
Parent type for user-defined types with array-like behaviour. Use in cases when you would like to inherit from built-in Arr. Inheriting from built-ins is not possible for now.
Direct subtypes: 6

Methods

=~(x:Any, a:AllOf, mc:MatchContext) Source: stdlib.ngs:2002
Checks whether one of the patterns (elements of AllOf) matches

Example

{"k1": "v1", "k2": "v2", "kk3": "vv3"}.filterk(AllOf(/^k/, {len(A) <= 2})) == %{k1 v1 k2 v2}
Bool(a:AllOf) Source: stdlib.ngs:2007
Checks whether all items are truthy.
code(a:AllOf) Source: stdlib.ngs:2014
Convert to NGS code that would produce the type. Not fully functional yet. Namespaces are not supported.

Returns

Str
init(a:AllOf, *items:Arr) Source: stdlib.ngs:1996
Initializes AllOf with the given items.