inst/examples/not.R

not.fun =
function(x) {
  return(!x)
}

not.fun.alt = 
function(x) {
  if (!x)
    return(1L)
  return(100)
}

not.fun(3)
not.fun(TRUE)
not.fun(as.matrix(3))
duncantl/R2llvm documentation built on May 14, 2019, 9:42 a.m.