takeWhile method

Iterable<E> takeWhile (bool test(E element))