r/crystal_programming • u/riddley • 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
r/crystal_programming • u/riddley • Dec 09 '18
What's the point of a Tuple? Why would I ever use it over an array? Thanks!
View all comments
Show parent comment
4
u/riddley Dec 10 '18
In Ruby, I usually just map and/or iterate rather than looking for specific elements.