Explorer

html-ui.modules-named

description
The modules named name in modules, searching from index (empty if none)
type
Fn(modules: List<@definy.stored-snapshot-module>, name: String, index: Number) -> List<@definy.stored-snapshot-module>
expression
fn(modules$0, name$1, index$2) =>
  match @core.list-get(list: $0, index: $2) {
    #none(_) =>
      [],
    #some(module$3) =>
      match @core.equal(left: $3.name, right: $1) {
        true =>
          [$3],
        false =>
          @html-ui.modules-named(modules: $0, name: $1, index: @core.plus(left: $2, right: 1))
      }
  }
visibility
public
html-ui.modules-named (project html-ui, branch main, snapshot Daaw3vbJhY15cDW6JsA4JuXvffjj_qFyxoZQMUM8hvQ)
id: MyRvRQRs-U0JaiZo3IVSD2KBPB1IJ7McCOf5AhaErmQ
content hash: UsZdOfNH-tfqf4aX-_9LAKFOuZtmKeV_BE9XuBmoqyg