EvalOptions sets one or more evaluation options which may affect the evaluation or Result.
(opts ...EvalOption)
| 733 | |
| 734 | // EvalOptions sets one or more evaluation options which may affect the evaluation or Result. |
| 735 | func EvalOptions(opts ...EvalOption) ProgramOption { |
| 736 | return func(p *prog) (*prog, error) { |
| 737 | for _, opt := range opts { |
| 738 | p.evalOpts |= opt |
| 739 | } |
| 740 | return p, nil |
| 741 | } |
| 742 | } |
| 743 | |
| 744 | // InterruptCheckFrequency configures the number of iterations within a comprehension to evaluate |
| 745 | // before checking whether the function evaluation has been interrupted. |
no outgoing calls