Join Harrison Ferrone for an in-depth discussion in this video Functional Swift, part of Learning Swift 3 for Developers.
- [Instructor] One last time, we're going to make some room,…and add ourself a comment.…Functional Swift.…The functional programming swift is another large topic,…like generics and protocols.…And that could take up an entire course.…For our needs, we're only going to look at the…higher-order functions, that are most often used,…in functional programming.…We'll leave further exploration of the topic to you.…I'll provide some resources you can check out,…in the Next Steps video, at the end of this course,…if you're interested.…
For starters, let's declare an array, called scores.…And this is going to be an array of integers.…I'm just going to say 123, for the first one.…43, 57 and 2001.…We're going to work with this array,…for the rest of the video.…As we apply the map, filter and reduce functions,…to illustrate the Functional Swift syntax.…First, let's map our scores array.…Or, put another way, iterate over each entry,…and do some action.…
Let's create a new variable called mappedScores.…And we're going to set this equal to scores.map.…
- Starting a new playground
- Printing to the console
- Declaring variables
- Working with numbers
- Using strings
- Breaking down optionals
- Understanding closures
- Classes vs. structs
- Extensions and protocols
Skill Level Beginner
1. Hello Swift
2. Back to Basics: Variables and Operators
3. Collections, Tuples, and Enumerations
4. Working with Logic Flows
5. Only in Swift: Optionals
6. Functions, Closures, and Associated Types
7. Classes vs. Structs
8. Advanced Topics
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.