Explorer

core.expression-list-contains-hole

description
Whether any expression from index has an unfilled hole (start with index 0)
type
Fn(items: List<@core.expression>, index: Number) -> Boolean
expression
fn(items$0, index$1) =>
  match @core.list-get(list: $0, index: $1) {
    #none(_) =>
      false,
    #some(item$2) =>
      match @core.expression-contains-hole(expr: $2) {
        true =>
          true,
        false =>
          @core.expression-list-contains-hole(items: $0, index: @core.plus(left: $1, right: 1))
      }
  }
visibility
public
core.expression-list-contains-hole (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204)
id: 7tVXM59fAOsvuAmCYxMeClZX3mNTn_uOCA3Ksy1QXT0
content hash: kmTiTV0Ose7eUZuN4CTvYYvPmv91jxLk6TFqol_aKFA