For HASH references

$h.size()

$h.keys()

Returns an ARRAY reference consisting of the keys of $h, which are sorted by the keys.

$h.values()

Returns an ARRAY reference consisting of the values of $h, which are sorted by the keys.

$h.kv()

Returns an ARRAY reference consisting of the key-value pairs of $h, which are sorted by the keys. Each pair is an object that has the keys and value attributes.

For example:

: for $hash_ref.kv() -> $pair {
<: $pair.key :>=<: $pair.value :>
: }

LOOP VARIABLES

You can use special loop variables in for loops, although its forms vary in template syntaxes, i.e. $~item in Kolon and loop in TTerse. In this list, the name of the loop variable is represented as $~item.