https://kotlinlang.org logo
d

Daniel

05/16/2018, 8:46 PM
What would be a good kotlin way to create a list with x entries of the same kind? The usecase is that I have a product with x operands and want to create operands.size - 1 signs for it. Currently I came up with:
perands.drop(1).map { TimesSign() }
A big thanks in advance! 🙂