Subscripts 程式範例 — Apple’s The Swift Programming Language

Subscript Syntax

乘法範例

Subscript Usage

Subscript Options

subscript 可以有多個參數

例子: 矩陣

Image for post
Image for post

彼得潘的iOS App程式設計入門,文組生的iOS App程式設計入門講師,彼得潘的 Swift 程式設計入門,App程式設計入門作者,http://apppeterpan.strikingly.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store