I'm writing a Less mixin.
I want to be able to pass the mixin several(undefined) parameters and get the params one by one.
.my-mixin-with-property(@property, @value-1, @value-2, ...) {
@{property}: some-func(@value-1) some-func(@value-2) ...;
}
I am going to use @rest
and then pass undefined numbers of parameters but I don't know how to get the elements of @rest
one by one, so I can pass the elements to some-func
one by one and get the result.
How to do this? Thanks!