I want a function that applies a given function to a sequence and returns true iff the given function returns true for every element of the sequence, like Enumerable.All from th
Building up on Jon's answer: You can use contains() instead of an (explicit) loop:
contains()
extension SequenceType { func all(@noescape predicate: (Self.Generator.Element) throws -> Bool) rethrows -> Bool { return !(try contains { !(try predicate($0)) }) } }