Types
Eachable which each() calls the callback with two arguments
- Eachable
-
Parent type of all types that have each() method
- Hash
-
Hash type. Maps unique keys to their values.
Key-Value pairs are stored and iterated in insertion order.
Currently Hash type has several limitations:
Hash keys are hashed using internal hash() function which can not be overwritten.
The internal hash() function exposed to NGS code but adding implementations or setting "hash" to some other function
will not affect operation of Hashes.
Hash values are compared using internal is_equal() function which can not be overwritten.
Both hash() and is_equal() currently handle only Int, Str and arbitrary objects.
Comparison of arbitrary objects is done by comparing their addresses in memory.
- HashLike
Methods