hypotenuse(a, b) := { aa := a * a bb := b * b sqrt(aa + bb) } make-counter(start) := { count := start fn() { count = count + 1 count } } stats(xs) := { n := vector-length(xs) total := 0 i := 0 while i < n { total = total + xs[i] i = i + 1 } [n, total, if n == 0 { 0 } else { total / n }] } display(hypotenuse(3, 4)) newline() counter := make-counter(10) display([counter(), counter(), counter()]) newline() display(stats([2, 4, 6])) newline()