Explorer

core.value-equals-record-fields

description
Whether every field of left_fields (from index) is in right_fields with the same key and an equal value. The caller compares the numbers of fields
type
Fn(
  left_fields: List<Record{key: String, value: @core.value}>,
  right_fields: List<Record{key: String, value: @core.value}>,
  index: Number
) -> Boolean
expression
fn(left_fields$0, right_fields$1, index$2) =>
  match @core.list-get(list: $0, index: $2) {
    #none(_) =>
      true,
    #some(item$1003) =>
      match @core.value-equals-record-field-in(fields: $1, key: $1003.key, value: $1003.value, index: 0) {
        true =>
          @core.value-equals-record-fields(left_fields: $0, right_fields: $1, index: @core.plus(left: $2, right: 1)),
        false =>
          false
      }
  }
visibility
public
core.value-equals-record-fields (project definy, branch public-release, snapshot ZhZSt7pd8D1cjWV6M1duEP19oNXR1s68fsVmzKaEgCo)
id: qPdWIqfqWImtxmflzHiyhe9RY51IZAImou4sSKnl-Jo
content hash: qWK99lx8f_wGnvaZwDMh9Hs0_yBYtfJ0A6nYGQP5Faw