Methods

paramsΒΆ

params(c:Closure)

Get closure parameters.

Example

... F the_one(something, predicate, body:Fun, found_more:Fun={null}, found_none:Fun={null}) ...
the_one[1].params().each(echo)# {name=something, type=<Type Any>}
# {name=predicate, type=<Type Any>}
# {name=body, type=<Type Fun>}
# {name=found_more, type=<Type Fun>, dflt=<Closure <anonymous> at /usr/share/ngs/stdlib.ngs:198>}
# {name=found_none, type=<Type Fun>, dflt=<Closure <anonymous> at /usr/share/ngs/stdlib.ngs:198>}