Skip to content

Category Archives: Scala

The ++() method is utilized to return a new queue with all the elements of the queue appended at the back of another queue. Method… Read More
The ++:() method is utilized to return a new queue with all the elements of the queue appended at the front of another queue. Method… Read More
The substring() method is utilized to find the sub-string from the stated String which starts from the index specified. Method Definition: String substring(int beginIndex) Return… Read More
The diff() method is used to find the difference between the two queues. It deletes elements that are present in one queue from the other… Read More
The subSequence() method is utilized to find the sub-sequence from the given String, And this sub-sequence starts and ends with the index we specify. Method… Read More
The takeRight() method is utilized to return a set consisting of last ‘n’ elements of the set. Method Definition: def takeRight(n: Int):Set[A] Where ‘n’ is… Read More
The dropWhile() method is utilized to drop the longest prefix from the front which satisfies a given predicate in a queue. Method Definition: def dropWhile(p:… Read More
The +:() method is utilized to return a new queue with an element added at the front of the given queue. Method Definition: def +:[B… Read More
The +=() method is utilized to add an element at the back of a given queue. Method Definition: def +=(elem: A): Queue.this.type Return Type: It… Read More
The +=:() method is utilized to add an element at the front of a queue. Method Definition: def +=:(elem: A): Queue.this.type Return Type: It returns… Read More
The ++=() method is utilized to add element of a queue at the back of another queue. Method Definition: def ++=(xs: IterableOnce[A]): Queue.this.type Return Type:… Read More
The :+() method is utilized to return a new queue with an element added at the back of the given queue. Method Definition: def:+[B >:… Read More
The apply() method is utilized to find the element at any given index in a queue. Method Definition: def apply(idx: Int): A Return Type: It… Read More
The clear() method is utilized to delete all the elements of the queue. Method Definition: def clear(): Unit Return Type: It returns an empty queue.… Read More
The clone() method is used to create a copy of the given queue. Method Definition: defclone(): Queue[A] Return Type: It return a new queue which… Read More

Start Your Coding Journey Now!