Are there “rules” for Ruby syntactic sugar?

前端 未结 4 877
-上瘾入骨i
-上瘾入骨i 2021-02-10 06:22

I\'m learning the basics of Ruby (just starting out), and I came across the Hash.[] method. It was introduced with

a = [\"foo\", 1, \"bar\", 2]
=> [\"foo\", 1         


        
4条回答
提交回复
热议问题