def lsplit_by(pred, seq):
    """Splits the start of the sequence,
       consisting of items passing pred, from the rest of it."""
    a, b = split_by(pred, seq)
    return list(a), list(b)
Splits the start of the sequence,
       consisting of items passing pred, from the rest of it.
funcy/seqs.py