seq_ops.km 264 B

12345678910
  1. do
  2. let sum :=
  3. [1, 2, 3, 4, 5]
  4. . { Seq }
  5. . { map &(x) => (10 * x) }
  6. . { filter &(x) => (x != 50) }
  7. . { reduce (0, &(sum,x) => (sum + x)) },
  8. { os::println { String sum } }
  9. . { crash-on-error };