v/vlib/arrays/arrays.v

10 lines
127 B
V

module arrays
pub fn range<T>(start, end T) []T {
mut res := []T
for i := start; i < end; i++ {
res << i
}
return res
}