Home > front end >  Ruby a grammar problem
Ruby a grammar problem

Time:12-04

Ruby inside an array, they have been used in choosing array element such as s_array a... [b] this... And.. What is the difference

CodePudding user response:

2.3.1:001 & gt; [1, 2, 3], [2] 1..
=& gt; [2, 3]
2.3.1:002 & gt; [1, 2, 3] [1... 2]
=& gt; [2]

CodePudding user response:

Didn't see g

  • Related