Explorer

core.quote-find-part

description
The part with the id (a list of 0 or 1 item)
type
Fn(parts: List<Record{id: String, expression: @core.expression}>, id: String, index: Number) -> List<Record{id: String, expression: @core.expression}>
expression
fn(parts$0, id$1, index$2) =>
  match @core.list-get(list: $0, index: $2) {
    #none(_) =>
      [],
    #some(item$1003) =>
      match @core.equal(left: $1003.id, right: $1) {
        true =>
          [$1003],
        false =>
          @core.quote-find-part(parts: $0, id: $1, index: @core.plus(left: $2, right: 1))
      }
  }
visibility
public
core.quote-find-part (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: l-EFNdxcw3nTNUQR2x74AxMUx4FZCta5T_87i7u01LU
content hash: ap5sAKWvtc_bl0rU3MfNXpnIJyQRR8utNihB8MMtTrc