core.compile-parts-of
- description
- The parts with the ids, in the order of ids. An id without a part in parts is left out
- type
Fn(ids: List<String>, parts: List<Record{id: String, expression: @core.expression}>) -> List<Record{id: String, expression: @core.expression}>- expression
fn(ids$0, parts$1) => let index$2 = @core.list-hash-index(list: $1, field: "id"); @core.list-fold( T: String, A: List<Record{id: String, expression: @core.expression}>, reducer: fn(acc$3, item$4) => match @core.list-hash-index-find(index: $2, field: "id", value: $4) { #some(part$5) => @core.list-append(list: $3, item: $5), #none(_) => $3 }, init: [], xs: $0 )
- visibility
- public
core.compile-parts-of (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204) id: vI9Ep_eOdAAXTzwX6fKCR1Zn178_TJ4F629GLsPTECY content hash: vKz1fZVLzLjd1K_ia9nPbc1fjt7lEADOxMBhqmJLZ_g