tests/colon.R

library(RTypeInference)
f = function(n)
{
    total = 0L
    for(i in 1:n)
        total = total + i
    total
}

g = function(n) 1:n
    
tt.f = infer_types(f)
tt.g = infer_types(g)
duncantl/RTypeInference documentation built on Jan. 16, 2021, 12:30 a.m.