NativeMethod type

Native method type. Methods implemented in C have this type.

Methods

params(m:NativeMethod)
Introspect method parameters

Example

(+).Arr()[2].params().each(echo)
# {name=a, type=<Type Int>}
# {name=b, type=<Type Int>}
Str(nm:NativeMethod) Source: stdlib.ngs:913
String representation of native method.

Returns

"<NativeMethod NAME(PARAMS)>"

Example

(%).Arr()[0].Str().echo()  # Outputs: <NativeMethod %(a:Int, b:Int)>