Explorer

definy.snapshot-parts-flat

description
The parts of the snapshots from index
type
Fn(commits: List<@definy.event-snapshot>, index: Number) -> List<@definy.stored-snapshot-part>
expression
fn(commits$0, index$1) =>
  match @core.list-get(list: $0, index: $1) {
    #none(_) =>
      [],
    #some(commit$2) =>
      @core.list-concat(
        left: @definy.snapshot-parts(modules: $2.commit.modules, index: 0),
        right: @definy.snapshot-parts-flat(commits: $0, index: @core.plus(left: $1, right: 1))
      )
  }
visibility
public
definy.snapshot-parts-flat (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: v0J7Ke7Gx4ti5r5oqZz_vsCM451Huj0zccj5DLW8qoY
content hash: TlW-VlJ6wg73F0BEwMyPpe3YGqireRN6Z8wjJZ8FgEM