3 ms·
> that code could be made yet more compact if written in Groovy Indeed. It's very hard to read this and not think ... "but this would just be" in Groovy:
by zmmmmm 14y ago
> that code could be made yet more compact if written in Groovy
Indeed. It's very hard to read this and not think ... "but this would just be" in Groovy:
[m1,m2]*.keySet().sum().sort().join(",")?:"<none>"
So small that I would rarely even make a separate function for it. I imagine it's much the same in many dynamic languages.