core.branch-snapshot-count
- description
- count plus the number of snapshots of the branch of the project from index
- type
Fn( commits: List<@core.snapshot-summary>, project_name: String, branch: String, index: Number, count: Number ) -> Number
- expression
fn(commits$0, project_name$1, branch$2, index$3, count$4) => match @core.list-get(list: $0, index: $3) { #none(_) => $4, #some(item$1006) => let commit$5 = $1006; @core.branch-snapshot-count( commits: $0, project_name: $1, branch: $2, index: @core.plus(left: $3, right: 1), count: match @core.and( left: @core.equal(left: $5.project_name, right: $1), right: @core.equal(left: $5.branch, right: $2) ) { true => @core.plus(left: $4, right: 1), false => $4 } ) }
- visibility
- public
core.branch-snapshot-count (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204) id: YUXGOVBppisfNczqpQdNeryrM3PSYx7a0YGKv8_TM3Q content hash: PDD0VFTMLKAZJ37OSRQGfQv-u389wPfh7Ix9HSKewxg