definy.closure-find-all
- description
- The candidates of the ids, in the order of ids (ids without a candidate are left out). candidates is the index made by definy.closure-candidate-index
- type
Fn( candidates: List<List<Record{id: String, candidate: @definy.closure-candidate}>>, ids: List<String> ) -> List<@definy.closure-candidate>- expression
fn(candidates$0, ids$1) => @core.list-fold( T: String, A: List<@definy.closure-candidate>, reducer: fn(acc$2, item$3) => match @core.list-hash-index-find(index: $0, field: "id", value: $3) { #none(_) => $2, #some(found$4) => @core.list-append(list: $2, item: $4.candidate) }, init: [], xs: $1 )
- visibility
- public
definy.closure-find-all (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo) id: 8uPo-_PF--EOfQ9Y_fvUflbLx09oWXSfUtw-hD65TVg content hash: haV0LRKLq5sEH0z-CRj7sjvrr82ap6javHy7vYrV3xY