This is using `split-with`. Were you thinking of `split-at`?