You are viewing a single comment's thread. Return to all comments →
It is a placeholder for an anonymous function parameter. It turns
arr.flatMap(List.fill(num)(_))
into
arr.flatMap { x => List.fill(num)(x) }
where x is a value representing ea. element of arr.
x
arr
List Replication
You are viewing a single comment's thread. Return to all comments →
It is a placeholder for an anonymous function parameter. It turns
arr.flatMap(List.fill(num)(_))
into
where
x
is a value representing ea. element ofarr
.