genprogn()
import { genprogn } from "@fed1/jsos";
The progn
method combinator
executes all matching primary methods and then returns only the result of the
last called method.
Usage
genprogn(args, getNext, hasNext)
This function is not supposed to be used on its own, but you can supply it as
a value for the option combinator
when creating a new multimethod using
Generic
.
Please see method combinator for more available combinators and to learn how to write one yourself.
Version History
Feature | Since version |
---|---|
genprogn() | 1.0 |
See also
- API: genpipe()
- API: genlist()
- API: genplus()
- API: genstd()
- Article: Method Combinators