Explorer

core.other-project-module-names

description
The module names of the latest snapshot of every branch of the projects other than project_name, from index (docs/project.md)
type
Fn(commits: List<@core.snapshot-summary>, project_name: String, index: Number) -> List<String>
expression
fn(commits$0, project_name$1, index$2) =>
  match @core.list-get(list: $0, index: $2) {
    #none(_) =>
      [],
    #some(item$1005) =>
      let commit$3 = $1005;
      @core.list-concat(
        left: match @core.equal(left: $3.project_name, right: $1) {
          true =>
            [],
          false =>
            match @core.branch-latest-snapshot(commits: $0, project_name: $3.project_name, branch: $3.branch, index: 0, found: #none) {
              #none(_) =>
                [],
              #some(latest$4) =>
                match @core.equal(left: $4.event_hash, right: $3.event_hash) {
                  true =>
                    $3.module_names,
                  false =>
                    []
                }
            }
        },
        right: @core.other-project-module-names(commits: $0, project_name: $1, index: @core.plus(left: $2, right: 1))
      )
  }
visibility
public
core.other-project-module-names (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204)
id: xq-9n8b3RhwipFtSGShQyutrfcgXvahajZp9rmDQknM
content hash: rXB4FCoy4JKZi4gp_Yoz1A29NkTy4wttbZ6dX9dpv4I