Quantcast
Channel: alvinalexander.com - sequence
Viewing all articles
Browse latest Browse all 25

How to flatten a List of Lists in Scala with flatten

$
0
0

Scala problem: You have a list of lists (or more generally, a sequence of sequences) and want to create one list (sequence) from them.

(The following solution comes from the Scala Cookbook, which I wrote.)

read more


Viewing all articles
Browse latest Browse all 25

Latest Images

Trending Articles



Latest Images