- iOS 12 Programming for Beginners
- Craig Clayton
- 121字
- 2021-07-02 15:04:59
Creating an empty array
Now let's create a few arrays in Playgrounds.
Sometimes, you may want to remove your prior entries from your Playground so that it is easier for you to see each new print statement. Do that now and input the following:

We just created our first two arrays. The reason for two different syntaxes is because you can create it in two different ways. Regarding the first example, you will see me create arrays throughout this book.
The data types within each set of brackets tells Swift what type of array we want to create. The first array (integers) we created has a data type of ints, and our second array (strings) has a data type of strings.
推薦閱讀
- 連接未來:從古登堡到谷歌的網絡革命
- 工業控制網絡安全技術與實踐
- Spring Boot 2.0 Projects
- 物聯網安全與深度學習技術
- Web Application Development with R Using Shiny
- 電力物聯網工程技術原理與應用
- Metasploit Penetration Testing Cookbook
- Yii Application Development Cookbook(Second Edition)
- 6G無線網絡空口關鍵技術
- 網絡AI+:2030后的未來網絡
- Getting Started with Memcached
- 世界互聯網發展報告2021
- 工業以太網技術:AFDX/TTE網絡原理、接口、互連與安全
- 移動互聯網環境下的核心網剖析及演進
- 互聯網戰略變革與未來