genstd()
import { genstd } from "@fed1/jsos";
The standard method combinator. It executes only the most specific method and returns its result.
Usage
genstd(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 |
|---|---|
| genstd() | 1.0 |
See also
- API: genprogn()
- API: genpipe()
- API: genlist()
- API: genplus()
- Article: Method Combinators
