Explorer

core.type-declaration-find

description
The declaration of the type part id, from index
type
Fn(declarations: List<@core.type-declaration-entry>, id: String, index: Number) -> Union{#none, #some(@core.expression)}
expression
fn(declarations$0, id$1, index$2) =>
  match @core.list-get(list: $0, index: $2) {
    #none(_) =>
      #none,
    #some(item$1004) =>
      let entry$3 = $1004;
      match @core.equal(left: $3.id, right: $1) {
        true =>
          #some($3.declaration),
        false =>
          @core.type-declaration-find(declarations: $0, id: $1, index: @core.plus(left: $2, right: 1))
      }
  }
visibility
public
core.type-declaration-find (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204)
id: L0sxPG6LwJmoECiLmAdDutNjZyI-A-e7JArGfmYUy7k
content hash: BSRApDwPjQWOVe6ArfBkhF4yHV4iXmOtEHauFPfZOj0