I guess this function would do ```inline fun <r...
# announcements
i
I guess this function would do
Copy code
inline fun <reified T> listWith(count: Int, element: T): List<T> =
    Array(count) { element }.toList()
m
List(count) { element }
i
Ooh, ok. Didn't see that
thanks
very weird, as the syntax is the same as for the array 😅
l
You could also do with ranges
(0 until 15).map { false }