takeWhileLaw

inline fun <E> Collection<E>.takeWhileLaw(predicate: (E) -> Boolean): List<E>