MultiMethod type
Direct parent types
- Eachable1
Eachable which each() calls the callback with one argument Direct subtypes: 17
Constructors
- MultiMethod(methods:Arr)
Construct MultiMethod from the given methods Returns
MultiMethod
- MultiMethod() Source: stdlib.ngs:404
Create MultiMethod with no methods
Methods
- Arr(mm:MultiMethod)
Get methods of a MultiMethod Returns
Arr
- Bool(mm:MultiMethod) Source: stdlib.ngs:410
Whether MultiMethod has any methods
- each(mm:MultiMethod, cb:Fun) Source: stdlib.ngs:421
Call cb for each method of the MultiMethod Example
echo.each(F(method) echo("${method.params().name.join(", ")}"))
- filtero(mm:MultiMethod, pattern:Any) Source: stdlib.ngs:426
Undocumented
- init(mmd:MultiMethodDescription, containing_nd:NamespaceDescription, name:Str, multimethod:MultiMethod)
Undocumented
- inspect(path:Arr, mm:MultiMethod)internal Source: stdlib.ngs:617
Internal method. Please do not use. Inspect MultiMethod Returns
Arr of Str
- len(mm:MultiMethod) Source: stdlib.ngs:407
Number of methods in MultiMethod
- Str(mm:MultiMethod) Source: stdlib.ngs:428
Undocumented