title: Scala Flatmap on Array inside the part of the value
body: <p>I have RDD like (a,b,Array(p1,p2,p3),c), I want to apply flatmap on Array inside the value to get the below output like.
  (a,b,p1,c)
  (a,b,p2,c)
  (a,b,p3,c)</p>