Skip to content

rozeappletree/swift4tensorflow

Repository files navigation

swift4tensorflow

Try your code in google collaboratory

Open blank Swift Colaboratory

Swift Basics

01-01 Part 1

  • Shell commands
  • Variables and constants
  • Types of data
  • Operators
  • String interpolation
  • Arrays, Dictionaries
  • Conditional statements
  • Loops
  • Switch case

01-02 Part 2

  • Functions
  • Optionals and optional chaining
  • Enumerations
  • Structs
  • Classes
  • Properties and Static properties and methods
  • Access control
  • Polymorphism
  • Type casting

01-03 Part 3

  • Closures
  • Protocols
  • Extensions
  • Protoccol extensions

Build a Package/Library using SPM

Outline

  1. Create library package - hellolib
  2. Create executable package - helloexec
  3. Import and access hellolib using helloexec
  4. Import in swift-jupyter notebooks

Know more here


Data Structures

  • Array
    • 2-Dimensional
  • Stack
  • Queue
    • Simple
    • Optimal
  • Deque
    • Simple
    • Optimal