pipeline_lambda.km 362 B

1234567891011121314151617
  1. type Point {
  2. x: Float,
  3. y: Float
  4. };
  5. do
  6. let l := [{ |Point| { x:1, y: 2 } }, { |Point| { x:3, y: 4 } }],
  7. let p := { |.y| { |Point| { x: 0, y: -1 } } },
  8. let q := l.{ map |.x| }.{ map || },
  9. let str := [
  10. p.{String},
  11. q.{ map |.{String}| }.{ join ', ' }
  12. ].{ join \n },
  13. { os::println str }
  14. . { crash-on-error };