Explorer

core.validate-parts-in-env

description
Validates every part definition in a list under a given type environment
type
Fn(parts: List<@core.part-definition>, env: @core.type-env, index: Number) -> Boolean
expression
fn(parts$0, env$1, index$2) =>
  match @core.list-get(list: $0, index: $2) {
    #none(_) =>
      true,
    #some(item$1003) =>
      match @core.validate-part-in-env(part: $1003, env: $1) {
        true =>
          @core.validate-parts-in-env(parts: $0, env: $1, index: @core.plus(left: $2, right: 1)),
        false =>
          false
      }
  }
visibility
public
core.validate-parts-in-env (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204)
id: X-NMeOynxIGf9Rfk6LLExWaF0CCcB3MqVIAm7iTYo-s
content hash: NqS631yrLYJJrC3r3KvuWXBt4obGejSv5VDYToNFcxo