These questions have been Scala questions, not Spark questions. It's better to look for answers on the internet or on discussion groups devoted to Scala. StackOverflow is good, for example.
An array is indexed by integers, not strings. It's not even clear what you intend here. On Tue, Sep 9, 2014 at 7:07 AM, Deep Pradhan <pradhandeep1...@gmail.com> wrote: > Hi, > I have "s" as an Iterable of String. > I also have "arr" as an array of bytes. I want to set the 's' position of > the array 'arr' to 1. > In short, I want to do > arr(s) = 1 // algorithmic notation > > I tried the above but I am getting type mismatch error > How should I do this? > > Thank You --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org