Explorer

definy.closure-candidates

description
The parts of the snapshots from index with their project names
type
Fn(commits: List<@definy.event-snapshot>, index: Number) -> List<@definy.closure-candidate>
expression
fn(commits$0, index$1) =>
  match @core.list-get(list: $0, index: $1) {
    #none(_) =>
      [],
    #some(commit$2) =>
      @core.list-concat(
        left: @core.list-map(
          T: @definy.stored-snapshot-part,
          U: @definy.closure-candidate,
          f: fn(item$3) =>
            {project_name: $2.commit.project_name, part: $3},
          xs: @definy.snapshot-parts(modules: $2.commit.modules, index: 0)
        ),
        right: @definy.closure-candidates(commits: $0, index: @core.plus(left: $1, right: 1))
      )
  }
visibility
public
definy.closure-candidates (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: o_oifW9E8vwINzWR6ni0lMuW3AhKgfTMrYAIuammRRY
content hash: 4TX8dIcdMwUzFL-_WS28Rf_MbQtyBxH-fEVElgnxneA