W1215 Function Signatures
Function signatures consist of the function's name (identifier); parameter arity, types, names, and order; and the function's return type. (Note that various languages treat some of these items differently. For example, not all languages allow for a different return type if the signature is otherwise identical.)
- Read Functions (First paragraph only) (Swift Documentation)
- Read Type Signature (Wikipedia)
- Read Computer Science I Textbook (by Bourke) Chapter 5.1.1. Function Signatures
Create a directory within your "project" directory.
cd ~/Experiences mkdir W1215 cd W1215 swift-init
Edit a new file named "main.swift"