explorations/list.R

library(RLLVMCompile)

f =
function(l, i)
{
   el = l[[i]]
   length(el)
}

fc = compileFunction(f, Int32Type, list(SEXPType, Int32Type))
if(FALSE) {
x = list(a = 1:10, b = rnorm(20))
.llvm(fc, x, 1L)
.llvm(fc, x, 2L)
}

    
duncantl/RLLVMCompile documentation built on May 15, 2019, 5:31 p.m.