Mark
05/18/2020, 6:55 AMmarstran
05/18/2020, 6:56 AMMark
05/18/2020, 6:58 AMseq1.zip(seq2) { (s1, s2) -> doWork(s1, s2) }
Kroppeb
05/18/2020, 7:23 AMzipWith
marstran
05/18/2020, 7:32 AMseq1.zip(seq2).forEach { (s1, s2) ->
doWork(s1, s2)
}
Kroppeb
05/18/2020, 7:36 AMMark
05/18/2020, 8:32 AMmarstran
05/18/2020, 8:33 AMforEach
, like it would if it was a list.Kroppeb
05/18/2020, 8:44 AMmarstran
05/18/2020, 9:03 AMseq1.zip(seq2) { a, b -> doWork(s1, s2) }.forEach {}
avoids it, but it looks weird 😛