Versions of `elem_of_list_split` that give first or last element.

8 jobs for master
latest