replicate
Deprecated
This API is niche and will be removed in the future. If this method is crucial for you, please let us know on the Arrow Github. Thanks! https://github.com/arrow-kt/arrow/issues Prefer using the Either DSL, or map
Replace with
if (n <= 0) Right(MB.empty()) else map { b -> List(n) { b }.fold(MB) }Content copied to clipboard
Deprecated
This API is niche and will be removed in the future. If this method is crucial for you, please let us know on the Arrow Github. Thanks! https://github.com/arrow-kt/arrow/issues Prefer using the Option DSL or map
Replace with
MA.run { this.map { List(n) { it }.fold(empty()) { acc, v -> acc + v } } }Content copied to clipboard