how to convert a Iterator[Long] to Iterator[String] in scala -


i have requirement have convert iterator[long] iterator[string] in scala. please let me know how can it

thanks

well other collection use map. example:

scala> val ls = list(1,2,3).toiterator ls: iterator[int] = non-empty iterator  scala> ls.map(_.tostring) //it map(x+""). see comments on why bad res0: iterator[string] = non-empty iterator  scala> res0.next res1: string = 1  scala> res0.next res2: string = 2  scala> res0.next res3: string = 3 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -