November 2016
Intermediate to advanced
480 pages
14h 42m
English
Use what you have learned in this chapter to clean up the implementation of reduce(_:_:) presented above. The implementation can be shortened quite significantly: Your solution should be expressed in one line. When you are done, take a look at the sample code for the other higher-order functions and practice with them.
Read now
Unlock full access