[Pitch] Sequence grouped(by:) and keyed(by:)

A relevant post from a few years ago: