You can use the filter(_:) method on SequenceType in order to create a new array containing the elements of the sequence that satisfy a given predicate, which can be provided as a closure.
For example, filtering even numbers from an [Int]:
let numbers = [22, 41, 23, 30]
let evenNumbers = number...