Ruby's take_while() ported using new Swift 2.0 protocol extensionsgist.github.com1 pointaaronbrager11 years ago