报告在单体转换(map、flatMap 和 filter)中有副作用的表达式。
map
flatMap
filter
考虑将单体转换移动到单独的 foreach 通道。
foreach
示例:
var a = 0 Seq(1, 2).map(a += _)