cs193p – Project #1 Reading Assignment

cs193p - Project #1 Reading Assignment

Please note, this blog entry is from a previous course. You might want to check out the current one.

The first part of the first project is an reading assignment of the Swift Programming Language.

The following sections are very important and need to be read very carefully:

The following sections are important but are not too difficult:

The following sections are important but quite basic:

The following sections are currently not required, but might be in future sessions:

Additional Notes:

  • Though you can use emoticons in variable names, don’t do it.
  • Use semicolons only to separate multiple statements in a single line.
  • A string can be converted to an array of characters using:
let myArrayOfCharacters = Array(myString)
  • Trying to access an index in an array higher than its count results in a crash.
  • The array function last returns an optional.
  • The += array operator requires another array.
  • The switch statement is much more important than in other languages.
FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

Leave a Reply

Your email address will not be published.