//arrow-fx-stm/arrow.fx.stm/newTArray

newTArray

common fun <A> STM.newTArray(size: Int, f: (Int) -> A): TArray<A>

fun <A> STM.newTArray(size: Int, a: A): TArray<A>

fun <A> STM.newTArray(vararg arr: A): TArray<A>

fun <A> STM.newTArray(xs: Iterable<A>): TArray<A>

Do you like Arrow?

Arrow Org
<