tests/switch.R

library(RLLVMCompile)

f =
function(i)
{
     switch(i,
            '2' = 12,
            '3' = i * 1.5,
            '8' = i/2)

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