first attempt at splitting a list at the element where the predicate is true