Y
Hacker News
new
|
ask
|
show
|
jobs
by
biot
3742 days ago
How did hashrocket get named? I would think instead of => a hashrocket would look like: #>
edit: Makes total sense. Thanks for the replies.
2 comments
arjie
3742 days ago
Ruby's associative arrays are called hashes. That operator is how you assign a value to a key.
link
Cerium
3742 days ago
I understand that it is the rocket shaped operator used in making hashes.
{:cats => "foo"}
link