Tag Archives: Ruby Array-class

Array#values_at() : values_at() is a Array class method which returns an array containing the elements in self corresponding to the given selector. Syntax: Array.values_at() Parameter:… Read More
Array#unshift() : unshift() is a Array class method which returns the shifted array with argumented element in place. Syntax: Array.unshift() Parameter: Array Return: the shifted… Read More
Array#uniq!() : uniq!() is a Array class method which removes duplicate elements from the array and returns only if there is duplicate element in the… Read More
Array#uniq() : uniq() is a Array class method which returns a new array by removing duplicate values in the array. Syntax: Array.uniq() Parameter: Array Return:… Read More
Thread#group() : group() is a Thread class method which returns the ThreadGroup which contains the given thread, or returns nil if thread is not a… Read More
Array#*() is an Array class method which performs set join operation on the arrays. And returns new array by concatenation of int copies of the… Read More
Array#<<() : <<() is an Array class method which add elements at the end of the array. Syntax: Array.<<() Parameter: – Arrays for adding elements.… Read More
Array#==() is an Array class method which performs the comparison between the two arrays. It checks whether the two arrays are equal or not. Syntax:… Read More
Array#-() is a Array class method which performs set difference operation by removing the similar elements of the two array. Syntax: Array.-() Parameter: Arrays for… Read More
Array#+() is a Array class method which performs set concatenate operation arrays by combining two arrays to a third array. Syntax: Array.+() Parameter: Arrays for… Read More
Array#append() is an Array class method which add elements at the end of the array. Syntax: Array.append() Parameter: – Arrays for adding elements. – elements… Read More
Array#&() is a Array class method which performs set intersection operation on the arrays. And returns the common of the two arrays. Syntax: Array.&() Parameter:… Read More
any?() is an Array class method which checks for the presence of a pattern and passes each element of the collection to the given block.… Read More
last() is a Array class method which returns the last element of the array or the last ‘n’ elements from the array. The first form… Read More
join() is an Array class method which returns the string which is created by converting each element of the array to a string, separated by… Read More