Better, vectorized `cut` and corresponding test