EvalOptions sets one or more evaluation options which may affect the evaluation or Result.
(opts ...EvalOption)
| 718 | |
| 719 | // EvalOptions sets one or more evaluation options which may affect the evaluation or Result. |
| 720 | func EvalOptions(opts ...EvalOption) ProgramOption { |
| 721 | return func(p *prog) (*prog, error) { |
| 722 | for _, opt := range opts { |
| 723 | p.evalOpts |= opt |
| 724 | } |
| 725 | return p, nil |
| 726 | } |
| 727 | } |
| 728 | |
| 729 | // InterruptCheckFrequency configures the number of iterations within a comprehension to evaluate |
| 730 | // before checking whether the function evaluation has been interrupted. |
no outgoing calls