可以使用类似数组的语法访问字符串中的各个字符,如下所示。
You can access individual characters in a string by using array-like syntax, as follows.
这个特性与新的对象创建语法关系密切,新的语法可以用类似数组的语法很容易地在 Groovy 中创建 非定制类。
This feature goes hand-in-hand with a new syntax for object creation, which makes it easy to create non-custom classes in Groovy with an array-like syntax.
大多数组彼此之间的差别在统计上并不明显;然而,70分贝组的参与者——那些被置于类似咖啡店背景谈话声的噪音水平中的参与者——其表现明显好于其他组。
The differences between most of the groups were statistically insignificant; however, the participants in the 70 decibels group—those exposed to a level of noise similar to background chatter in a coffee shop—significantly outperformed the other groups.
应用推荐