Scala List - extract 'Date' and 'Adj close' values (columns) -


i trying extract 'date' , 'adj close' columns

list(date,    open,       high,    low,      close, volume, adj close 2016-11-10, 113.50, 115.440002, 111.50, 113.120003, 5700, 113.120003 2016-11-09, 113.00, 118.00,     113.00, 117.419998, 4000, 117.419998 2016-11-08, 118.139999, 120.129997, 115.07, 118.239998, 1900, 118.239998 

i have tried putting values 2d array each row column 0 , column 6 achieve goal, due being new scala unable achieve that.

is there more simple way of achieving this?

[your list variable here].map(e => (e._1, e._7)) 

will give list of tuples first , last element.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -