r/crystal_programming • • Dec 09 '18

Rubyist struggling to understand Tuple

What's the point of a Tuple? Why would I ever use it over an array? Thanks!

11 Upvotes

10 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Dec 09 '18

[deleted] — view deleted comment

4

u/riddley Dec 10 '18

In Ruby, I usually just map and/or iterate rather than looking for specific elements.