R/partial.eval.R

Defines functions partial.eval

# partially evaluate given expression. returns expression.
partial.eval <- function(expr, env) {
  partial_eval_call <- function(call, env) {
    do.call("substitute", args = list(call, env = env))
  }
  as.expression(lapply(expr, partial_eval_call, env = env))
}

Try the yuima package in your browser

Any scripts or data that you put into this service are public.

yuima documentation built on April 16, 2025, 5:12 p.m.