Ah, right, nice. In the meantime I found that a past version of me knew that there is some kind of #map()
for tuples, but since I never could put it to good use, it slipped from my radar.
Just to note, depending on compiler settings (and Scala version?), it should be a.asMatchable match ...
.
Not sure if there’s any sane way to put plain functions for uniform tuples on top of this mechanism to make this a match for the DSL use case. But the OP seems to be happy with lists, anyway…