Processing List

15 views
Skip to first unread message

Kim Trang Le

unread,
Oct 7, 2015, 7:34:34 AM10/7/15
to scala-user
Dear all, I have difficulty processing a list a scala:
Currently I have a list of like this

(List(JString(2437), JString(2445), JString(2428), JString(321)), CompactBuffer((4,1)))

and I would like after processing, the result will look like below:

( (2437, CompactBuffer((4,1))) ,  (2445, CompactBuffer((4,1))) , (2428, CompactBuffer((4,1))), (321, CompactBuffer((4,1))) )

Can any body help me with this issue?
Thank you very much.

Seth Tisue

unread,
Oct 7, 2015, 8:21:44 AM10/7/15
to scala-user
looks like you got help with this at http://stackoverflow.com/q/32990011/86485
Reply all
Reply to author
Forward
0 new messages