I\'ve seen various ways of looping in LESS, but I haven\'t found a way to build selectors (agglutinate would be the right term I guess).
For example, I\'d like somet
The proper solution would be:
.staticClass { .loop(5); .loop(@n, @i: 1) when (@i <= @n) { .repeatedClass { > .finalStaticClass { height: 10px * @i; } .loop(@n, @i + 1); } } }
Demo.