public < T2 , T3 , R1 , R2 , R3 > Unrestricted < R3 > forEach4 ( Function < ? super T , ? extends Unrestricted < R1 > > value2 , BiFunction < ? super T , ? super R1 , ? extends Unrestricted < R2 > > value3 , Function3 < ? super T , ? super R1 , ? super R2 , ? extends Unrestricted < R3 > > value4 ) { return this . flatMap ( in -> { Unrestricted < R1 > a = value2 . apply ( in ) ; return a . flatMap ( ina -> { Unrestricted < R2 > b = value3 . apply ( in , ina ) ; return b . flatMap ( inb -> { Unrestricted < R3 > c = value4 . apply ( in , ina , inb ) ; return c ; } ) ; } ) ; } ) ; }
Perform a For Comprehension over a Unrestricted accepting 3 generating function . This results in a four level nested internal iteration over the provided Computationss .