Hacker News new | ask | show | jobs
by papercrane 305 days ago
Gotcha! In python there is a `split_at` function for this in the more-itertools package, but I don't think there is a concise way to do it in the stdlib.