BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
URL:https://www.learndesk.us/class/6534923311644672/lesson/bde00c2ba207179f6afe0a5868385dd1?ref=outlook-calendar
SUMMARY:Notes
DTSTART;TZID=America/Los_Angeles:20260504T190000
DTEND;TZID=America/Los_Angeles:20260504T200000
LOCATION:https://www.learndesk.us/class/6534923311644672/lesson/bde00c2ba207179f6afe0a5868385dd1?ref=outlook-calendar
DESCRIPTION: Week 2 Notes
============================================================================
  
* Week 1 Recap *
  - Been talking about FP: namely Fns

* Questions? *
  - Able to run Swift and play?
  
- Little Game: Give Fn requirements:
1) write signature in Swift
2) guess an example
    - A) A fn that takes a String as input and returns also a String as output
    func fn1(s: String) -> String { ... }
    func twice(s: String) -> Int { return s + s }
    - B) A fn that takes two Strings as input and returns a boolean as output
    func fn1(first: String, second: String) -> Bool { ... }
    func equals(first: String, second: String) -> Bool { return first == second }    
  
* Homework #1 Solution *

- Wanted you to practice googling for your need.

- A new operator (%) called "modulo"
 X % Y returns the remainder from dividing X by Y.

Example:
3 % 2 = 1
44 % 2 = 0

func isOdd(_ n: Int) -> Bool { return n % 2 == 1 }
 
* Control *

- Control: controlling the flow of the program,...

https://www.learndesk.us/class/6534923311644672/lesson/bde00c2ba207179f6afe0a5868385dd1?ref=outlook-calendar
STATUS:CONFIRMED
SEQUENCE:3
BEGIN:VALARM
TRIGGER:-PT10M
DESCRIPTION:Class Reminder
ACTION:DISPLAY
END:VALARM
END:VEVENT
END:VCALENDAR