definy.resolved-content-find
- description
- The resolved content of the part id
- type
Fn(contents: List<@definy.resolved-part-content>, id: String, index: Number) -> Union{#none, #some(@core.part-content)}
- expression
fn(contents$0, id$1, index$2) => match @core.list-get(list: $0, index: $2) { #none(_) => #none, #some(item$3) => match @core.equal(left: $3.id, right: $1) { true => #some($3.content), false => @definy.resolved-content-find(contents: $0, id: $1, index: @core.plus(left: $2, right: 1)) } }
- visibility
- public
definy.resolved-content-find (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo) id: F0xTrJIxaTr0BX4aIcINzZESYjilMtzpYLeH3CshJ2w content hash: aL5ih4deQYst4Vf5x_W_1jHzIoA-7ez2eXa88TIvL4E