What would the idiomatic Kotlin-equivalent for <ht...
# getting-started
r
What would the idiomatic Kotlin-equivalent for http://stackoverflow.com/questions/5852722/replace-individual-list-elements-in-haskell be?
Copy code
list.mapIndexed { i, v ->
  if(i == indexToUpdate) {
    updatedVAtIndex
  } else v
}