Explorer

core.value-list-items-conform

description
Whether the items of a list value from index are all of item_type
type
Fn(
  items: List<@core.value>,
  item_type: @core.expression,
  declarations: List<@core.type-declaration-entry>,
  index: Number
) -> Boolean
expression
fn(items$0, item_type$1, declarations$2, index$3) =>
  match @core.list-get(list: $0, index: $3) {
    #none(_) =>
      true,
    #some(item$1004) =>
      match @core.value-conforms(value: $1004, declaration: $1, declarations: $2) {
        true =>
          @core.value-list-items-conform(items: $0, item_type: $1, declarations: $2, index: @core.plus(left: $3, right: 1)),
        false =>
          false
      }
  }
visibility
public
core.value-list-items-conform (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: _TsjA1S_6M4yNgamBhEx0y4DXGu-paeoX4-tVa5ODps
content hash: OGfmLXvqU8oN4RKVVXk4mKM4WYLI6qvumOlvTzD6z6Y