Skip to main content
Splits a stream of dated properties into three parallel streams: their values, their valid_from dates, and their ids. Each output is a list of fresh dated properties with valid_from and id set to nil. The valid_from stream is sorted in ascending date order; the value and id streams preserve the input order.

Example

Given two input dated properties:
[
  DatedProperty{value: 1, valid_from: "2023-01-01", id: "id1"},
  DatedProperty{value: 2, valid_from: "2024-01-01", id: "id2"}
]
the outputs are:
value:      [DatedProperty{value: 1, ...}, DatedProperty{value: 2, ...}]
valid_from: [DatedProperty{value: "2023-01-01", ...}, DatedProperty{value: "2024-01-01", ...}]
id:         [DatedProperty{value: "id1", ...}, DatedProperty{value: "id2", ...}]

Ports