- 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
- Cocos2d-x游戲開發:手把手教你Lua語言的編程方法
- 編程卓越之道(卷3):軟件工程化
- 程序員面試筆試寶典
- Offer來了:Java面試核心知識點精講(原理篇)
- 數據結構(Java語言描述)
- Hands-On Enterprise Automation with Python.
- Python面向對象編程:構建游戲和GUI
- 青少年學Python(第1冊)
- Python Data Analysis Cookbook
- HTML5從入門到精通 (第2版)
- MATLAB for Machine Learning
- MySQL從入門到精通(軟件開發視頻大講堂)
- Unity Character Animation with Mecanim
- 一步一步學Spring Boot:微服務項目實戰(第2版)
- Mastering Vim