change return type of Foldable#splitWith and Foldable#selectSplit