Ruby .store function changes hash values from array to single value

前端 未结 0 1090
不思量自难忘°
不思量自难忘° 2021-01-17 07:51

I am trying to create a hash where keys are number, and values is array [0,0] of counts from two arrays. what i am confused is why my_hash2.store(x,my_hash2[x][1]+1)

相关标签:
回答
  • 消灭零回复
提交回复
热议问题