You don't need to pass any parameter. If you want to apply a different class to each selector, you can call a no-arg mixin inside it, and use &
directly:
.coloursMixin() {
.for(@array); .-each(@array) {
@name: e(@array);
&.@{name} {color: @@name}
}
}
You can use it without any arguments:
.section {
.coloursMixin();
}
and it will append the selector to each class:
.section.white {
color: #ffffff;
}
.section.black {
color: #000000;
}