BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
URL:https://www.learndesk.us/class/6534923311644672/lesson/fdcd28ab1e741dcce5a0432fcf9d2fd0?ref=outlook-calendar
SUMMARY:Homework
DTSTART;TZID=America/Los_Angeles:20260504T190000
DTEND;TZID=America/Los_Angeles:20260504T200000
LOCATION:https://www.learndesk.us/class/6534923311644672/lesson/fdcd28ab1e741dcce5a0432fcf9d2fd0?ref=outlook-calendar
DESCRIPTION: * Homework:

- Write the sum function which returns the sum of numbers in a list, using list's forEach higher order function.
- forEach is like map function, but its type signature is:
  (n: TYPE) -> ()
  e.g.
  (n: Float) -> ()
-E.g.   print(sum([1.1,4.1,6.1])) // 11.3

- Unlike map function forEach doesn't return a value just does some work for each element in the list

func sum(list: [Float]) -> Float {
      ...
      list.forEach({ (n: Float) -> () in
                       ...                
       })
      return ..
}

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