Ruby hash-methods reference.
Iterate over a hash, passing each key-value pair and a memo object into the block. The memo object is accumulated across iterations and returned at the end.