Explorer

conformance.test-list-hash-index-find

description
Conformance test: list_hash_index_find returns the last record whose field equals the value
type
Boolean
expression
match @core.list-hash-index-find(
    index: @core.list-hash-index(list: [{id: "a", v: 1}, {id: "b", v: 2}, {id: "a", v: 3}, {id: "日本", v: 4}], field: "id"),
    field: "id",
    value: "a"
  ) {
  #some(found$900) =>
    @core.equal(left: $900.v, right: 3),
  _ =>
    false
}
visibility
public
conformance.test-list-hash-index-find (project definy, branch commit-check, snapshot Jh11inSnBH1eenK5G-juhyzQabT1OLdy3NmjD6OiVCs)
id: CHZaw0PdP6NYEH5qEYX_-JmJcaqOofTlKbcULbrpRXw
content hash: E1-nozjs8uScGBnfCQhRxywebjEsvxwj8smhMnzWgD0