Pascal How
04/09/2020, 11:24 AMbuildList
and I was wondering if there is a way to use it without having to write
@ExperimentalStdlibApi
everywhere.Milan Hruban
04/09/2020, 11:44 AMLachlan McKee
04/11/2020, 9:47 AMbuildList
rather than all @ExperimentalStdlibApi
functions?
I would like to be able to have more granular control of APIs that are an accepted risk, rather than allowing them all. Unless I've read it incorrectly, it seems that you would need a unique annotation per method experiential function at the moment.lee.crawford
04/11/2020, 3:20 PMinline fun <E> buildList (action: MutableList<E>.() -> Unit): List<E> {
val list= mutableListOf<E> ()
list.action ()
return list
}
Lachlan McKee
04/11/2020, 3:33 PMAlexey Belkov [JB]
04/13/2020, 9:16 AMLachlan McKee
04/13/2020, 9:23 AM