fn(module$0, module_id$1, part_ids$2, start$3, end$4) =>
let count$5 = @core.minus(left: $4, right: $3);
match @core.less-than(left: $5, right: 2) {
true =>
match @core.equal(left: $5, right: 1) {
true =>
match @core.list-get(list: $0.parts, index: $3) {
#some(part$6) =>
[
{
id: match @core.list-get(list: $2, index: $3) {
#some(id$7) =>
$7,
#none(_) =>
""
},
name: @core.string-concat(left: @core.string-concat(left: $0.name, right: "."), right: $6.name),
module_name: $0.name,
module_id: $1,
module_visibility: $0.visibility,
content_hash: $6.content_hash
}
],
#none(_) =>
[]
},
false =>
[]
},
false =>
let middle$8 = @core.plus(left: $3, right: @core.divide(left: $5, right: 2));
@core.list-concat(
left: @definy.stored-snapshot-parts(module: $0, module_id: $1, part_ids: $2, start: $3, end: $8),
right: @definy.stored-snapshot-parts(module: $0, module_id: $1, part_ids: $2, start: $8, end: $4)
)
}