Crystal · Lesson 6

Hashes, tuples and named tuples

Store key-value pairs in Hash, read safely with []? and fetch, count with default values, and group fixed data in tuples.

Lessons · Crystal · Lesson 6 of 10

Hashes, tuples and named tuples

Store key-value pairs in Hash, read safely with []? and fetch, count with default values, and group fixed data in tuples.

Illustration for Crystal
Store key-value pairs in Hash, read safely with []? and fetch, count with default values, and group fixed data in tuples.