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-commit(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))
)
}