Scala Collections – Fold Method
This topic is about Scala Collections - Fold Method. fold() method is a member of TraversableOnce trait, it is used to collapse elements of collections. Syntax The following is the…
This topic is about Scala Collections - Fold Method. fold() method is a member of TraversableOnce trait, it is used to collapse elements of collections. Syntax The following is the…
This topic is about Scala Collections - Flatten Method. flatten() method is a member GenericTraversableTemplate trait, it returns a single collection of elements by merging child collections. Syntax The following…
This topic is about Scala Collections - FlatMap Method. flatMap() method is method of TraversableLike trait, it takes a predicate, applies it to each element of the collection and returns…
This topic is about Scala Collections - Find Method. find() method is method used by Iterators to find an element which satisfies a given predicate. Syntax The following is the…
This topic is about Scala Collections - Filter Method. filter() method is method used by List to select all elements which satisfies a given predicate. Syntax The following is the…
This topic is about Scala Collections - DropWhile Method. dropWhile() method is method used by List to drop all elements which satisfies a given condition. Syntax The following is the…
This topic is about Scala Collections - Drop Method. drop() method is method used by List to select all elements except first n elements of the list. Syntax The following…
This topic is about Scala Collections - Stream. Scala Stream is special list with lazy evaluation feature. In scala stream, elements are evaluated only when they are needed. Stream supports…
This topic is about Scala Collections - Stack. Stack is Last In First Out, LIFO data structure and allows to insert and retrieve element at top, in LIFO manner. Declaring…
This topic is about Scala Collections - Seq. Scala Seq is a trait to represent immutable sequences. This structure provides index based access and various utility methods to find elements,…