[Git][ghc/ghc][wip/T23162-part2] 38 commits: base: generalize delete{Firsts,}By