genplus()
import { genplus } from "@fed1/jsos";
The genplus method combinator
executes all matching primary methods, sums their results and returns it.
Usage
genplus(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 |
|---|---|
| genplus() | 1.0 |
See also
- API: genprogn()
- API: genpipe()
- API: genlist()
- API: genstd()
- Article: Method Combinators
