import morfa.base; import morfa.functional.base; template func rms(d: TRange): float { var count = 1; return sqrt(reduce( (a: float, b: float) { count += 1; return a + b * b; }, d) / count); } func main(): void { println(rms(1 .. 11)); }