notes/dotdotdot-alist.R

temp = function(...) {
  params <- eval(substitute(alist(...)))
  # alist handles its arguments as if they described function arguments. So the
  # values are not evaluated, and tagged arguments with no value are allowed
  # whereas list simply ignores them
  lapply(params, eval)
}

temp(a=1:4, b=letters[3:7])
professorbeautiful/DUE documentation built on April 25, 2024, 9:16 a.m.