Skip to main content

Module utils

Module utils 

Source
Expand description

Utility functions.

Functions§

hash_map
Hashes a map’s entries, independently of their iteration order.
hash_set
Hashes a set of items, independently of their iteration order.
hash_set_opt
Hash an optional set of items.
simple_json_ld_eq
Compares two JSON values for JSON-LD equivalence: arrays are compared as multisets (any order, duplicates counted), except the value of an @list entry whose order is significant; objects must bind the same keys to equivalent values; everything else must be strictly equal.