- Julia 1.0 Programming Complete Reference Guide
- Ivo Balbaert Adrian Salceanu
- 162字
- 2021-06-24 14:21:47
Collection Types
Collections of values appear everywhere in programs, and Julia has the most important built-in collection types. In Chapter 2, Variables, Types, and Operations, we introduced two important types of collection: arrays and tuples. In this chapter, we will look more deeply into multidimensional arrays (or matrices), and into the tuple type as well. A dictionary type, where you can look up a value through a key, is indispensable in a modern language, and Julia has this too. Finally, we will explore the set type. Like arrays, all these types are parameterized; the type of their elements can be specified at the time of object construction.
Collections are also iterable types, the types over which we can loop with for or an iterator producing each element of the collection successively. The iterable types include string, range, array, tuple, dictionary, and set.
So, the following are the topics for this chapter:
- Matrices
- Tuples
- Dictionaries
- Sets
- An example project—word frequency
- 深入核心的敏捷開發:ThoughtWorks五大關鍵實踐
- Java多線程編程實戰指南:設計模式篇(第2版)
- Mastering JavaScript Object-Oriented Programming
- 構建移動網站與APP:HTML 5移動開發入門與實戰(跨平臺移動開發叢書)
- Building a RESTful Web Service with Spring
- AIRAndroid應用開發實戰
- Learning ArcGIS Pro
- Practical Game Design
- 零基礎入門學習Python
- 精通Python設計模式(第2版)
- C和C++游戲趣味編程
- jQuery技術內幕:深入解析jQuery架構設計與實現原理
- 數據分析與挖掘算法:Python實戰
- Python計算機視覺與深度學習實戰
- LabVIEW數據采集(第2版)