阅读背景:

在switch语句中计算匿名函数

来源:互联网 

Say I have a code like this:

假设我有这样的代码:

tmp <- switch("b",
              a = print("foo"),
              b = function() paste("I want to evaluate this one!"),
              stop("say what now?")
)
tmp



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: