in src/scala/generator/src/main/scala/EmojiInfoGeneratedView.scala [69:81]
def groupLastItemsByPrefix(seq: Seq[Seq[Int]]): Map[Seq[Int], Seq[Int]] = {
seq.map {
_.reverse
} groupBy {
// The prefix, or seq of all items except the last one
_.tail.reverse
} mapValues {
_.map {
// Because the seqs are reversed, this sets the values to the last item
_.head
}
}
}