EvalOptions sets one or more evaluation options which may affect the evaluation or Result.
(opts ...EvalOption)
| 796 | |
| 797 | // EvalOptions sets one or more evaluation options which may affect the evaluation or Result. |
| 798 | func EvalOptions(opts ...EvalOption) ProgramOption { |
| 799 | return func(p *prog) (*prog, error) { |
| 800 | for _, opt := range opts { |
| 801 | p.evalOpts |= opt |
| 802 | } |
| 803 | return p, nil |
| 804 | } |
| 805 | } |
| 806 | |
| 807 | // InterruptCheckFrequency configures the number of iterations within a comprehension to evaluate |
| 808 | // before checking whether the function evaluation has been interrupted. |
no outgoing calls