这个特性与新的对象创建语法关系密切,新的语法可以用类似数组的语法很容易地在 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.
可以使用类似数组的语法访问字符串中的各个字符,如下所示。
You can access individual characters in a string by using array-like syntax, as follows.
解析过程中,配置文件中的元素和数据转化成类似PHP关联数组的键-值对。
During this parsing process, the elements and data in the configuration file are converted into key-value pairs, similar to that found in a PHP associative array.
应用推荐