Hi, On Wed, Jan 7, 2015 at 10:47 AM, Riginos Samaras <[email protected]> wrote:
> Yes something like this. Can you please give me an example to create a Map?
>
That depends heavily on the shape of your input file. What about something
like:
(for (line <- Source.fromFile(filename).getLines()) {
val items = line.trim.split(" ")
(items(0).toInt, items(1))
}).toMap
Tobias
