Skip to content
Prev 28113 / 63424 Next

callCC in 2.7.0

Sorry it should be as follows:

fib <- function(i, a = 0, b = 1) {
  if (i == 0) b else fib(i-1, b, a+b)
}

Now, how do we transform that to use callCC?


On Sun, Mar 30, 2008 at 1:42 PM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote: