call multimethod

Methods

call(r:Return, v:Any=null) Source: stdlib.ngs:127
Implements calling of Return type instances like the finish(i) call in the example below

Example

F first(r:NumRange, predicate:Fun) {
	finish = Return()
	r.each(F(i) {
		predicate(i) throws finish(i)
	})
	null
}
call(hook:Hook, *args:Arr) Source: stdlib.ngs:877
Runs all handlers passing all args.

Parameters

argsArguments to pass to handlers

Returns

Arr. Results from all the handlers