fn(parts$0, id$1) =>
@core.list-fold(
T: @definy.snapshot-check-part,
A: List<@definy.snapshot-check-part>,
reducer: fn(acc$2, item$3) =>
match @core.equal(left: $3.id, right: $1) {
true =>
$2,
false =>
match $3.content {
#some(content$4) =>
match @core.list-contains-string(
list: @core.expression-part-references-in-list(items: @definy.part-content-expressions(content: $4), index: 0, ids: []),
target: $1,
index: 0
) {
true =>
@core.list-append(list: $2, item: $3),
false =>
$2
},
#none(_) =>
$2
}
},
init: [],
xs: $0
)