官术网_书友最值得收藏!

Complex types

We can build complex types from primitive and other composite types with the help of the following:

  • Structs: The elements within the type can be accessed using the DOT (.) notation. 
  • Maps (key-value tuples): The elements are accessed using the ['element name'] notation. 
  • Arrays (indexable lists): The elements in the array have to be in the same type. You can access the elements using the [n] notation where n is an index (zero-based) into the array. 
主站蜘蛛池模板: 邯郸县| 安化县| 绿春县| 周至县| 响水县| 四会市| 弥勒县| 随州市| 正阳县| 荆州市| 平陆县| 京山县| 象山县| 烟台市| 九台市| 临安市| 河间市| 平安县| 菏泽市| 五河县| 巴彦县| 岗巴县| 开平市| 高邮市| 绥德县| 莱西市| 察哈| 遂溪县| 峨山| 隆回县| 黔东| 清新县| 通海县| 若羌县| 东源县| 海口市| 会理县| 迁安市| 肃宁县| 凤翔县| 隆安县|