On this page:
key_  comp.def
8.12
7.13.11 Map Configurations🔗ℹ

definition

key_comp.def 'op_or_id_name':

  ref_by_clause

  ...

 

ref_by_clause

 = 

~equals: equals_proc_expr

 | 

~hash_code: hash_code_proc_expr

Defines op_or_id_name as a map configuration like === and for use with forms like Map.by.

The result of equal_proc_expr should be a procedure that takes three arguments: two values to compare, and a function to use for recursive comparison.

The result of hash_code_proc_expr should be a procedure that takes two arguments: the value to hash, and a function to use for recursive hashing.