forEach() Function

Hello Everyone,

Can we achieve the below scenario using the forEach() function?

apply(

  rule!appendTxt(

    txt1: _,

    txt2: _

 ),

merge(ri!txtArr1, ri!txtArr2)

)

  Discussion posts and replies are publicly visible