Collections to sequences

The common approach to sequence creation is to convert an existing collection into a sequence using the toSeq() method. Just like the Seq() constructor, toSeq() knows what type of sequence to create based on the type of collection that's being converted.

Another benefit of using toSeq() is that it fits nicely into the chained method call approach of Immutable.js: convert the collection to a sequence and then start calling transformation methods.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.238.20