Gold Challenge

Modify the findAll(_:_:) function you wrote for the silver challenge to accept a generic CollectionType instead of an array. Hint: you will need to change the return type from [Int] to an array of an associated type of the CollectionType protocol.

Get Swift Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.