Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Web Technologies
40.2k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.6k+ articles
JavaScript
11.5k+ articles
Ruby
1.1k+ articles
Ruby-Methods
910+ articles
Ruby Collections
130+ articles
Ruby Array-class
99 posts
Popular Articles
Recent Articles
Ruby | Array to_h() function
Last Updated: 05 December 2019
Array#to_h() : to_h() is a Array class method which returns the result of interpreting ary as an array of [key, value] pairs.Syntax: Array.t
...read more
Ruby
Ruby-Methods
Ruby Array-class
Ruby | Array max() function
Last Updated: 06 December 2019
Array#max() : max() is a Array class method which returns the maximum value in this array.Syntax: Array.max()Parameter: ArrayReturn: the max
...read more
Ruby
Ruby-Methods
Ruby Array-class
Ruby | Array map() function
Last Updated: 06 December 2019
Array#map() : map() is a Array class method which returns a new array containing the values returned by the block. Syntax: Array.map()Parame
...read more
Ruby
Ruby-Methods
Ruby Array-class
Similar Topics
Web Technologies
40.2k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.6k+ articles
JavaScript
11.5k+ articles
Ruby
1.1k+ articles
Ruby-Methods
910+ articles
Ruby Collections
130+ articles
Ruby | Array rotate() function
Last Updated: 06 December 2019
Array#rotate() : rotate() is a Array class method which returns a new array by rotating self so that the element at count is the first eleme
...read more
Ruby
Ruby-Methods
Ruby Array-class
Ruby | Array replace() function
Last Updated: 06 December 2019
Array#replace() : replace() is a Array class method which returns an array of all combinations of elements from all arrays.Syntax: Array.rep
...read more
Ruby
Ruby-Methods
Ruby Array-class
Ruby | Array unshift() function
Last Updated: 24 February 2022
Array#unshift() : unshift() is a Array class method which returns the shifted array with argumented element in place.Syntax: Array.unshift()
...read more
Ruby
Ruby-Methods
Ruby Array-class
Ruby | Array uniq() function
Last Updated: 06 December 2019
Array#uniq() : uniq() is a Array class method which returns a new array by removing duplicate values in the array.Syntax: Array.uniq()Parame
...read more
Ruby
Ruby-Methods
Ruby Array-class
Ruby | Array Difference (-) function
Last Updated: 07 January 2020
Array#-() is a Array class method which performs set difference operation by removing the similar elements of the two array.Syntax: Array.-(
...read more
Ruby
Ruby-Methods
Ruby Array-class
Ruby | Array class last() function
Last Updated: 07 January 2020
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 returns n
...read more
Ruby
Ruby-Methods
Ruby Array-class
Ruby | Array class first() function
Last Updated: 08 January 2020
first() is a Array class method which returns the first element of the array or the first 'n' elements from the array. Syntax: Array.first()
...read more
Ruby
Ruby-Methods
Ruby Array-class
Ruby | Array class find_index() operation
Last Updated: 08 January 2020
Array#find_index() : find_index() is a Array class method which returns the index of the first array. If a block is given instead of an argu
...read more
Ruby
Ruby Collections
Ruby Array-class
Ruby | Array class include?() operation
Last Updated: 08 January 2020
Array#include?() : include?() is a Array class method checks if the argumented object is present in the array or not. Syntax: Array.includ
...read more
Ruby
Ruby Collections
Ruby Array-class
Ruby | Array dig() operation
Last Updated: 08 January 2020
Array#dig() : dig() is a Array class method which extracts the specific element out of the high dimension sequences.Syntax: Array.dig()Para
...read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Array-class
Ruby | Array compact!() operation
Last Updated: 08 January 2020
Array#compact! () : compact! () is a Array class method which returns the array after removing all the 'nil' value elements (if any) from th
...read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Array-class
Ruby | Array compact() operation
Last Updated: 08 January 2020
Array#compact () : compact () is a Array class method which returns the array after removing all the 'nil' value elements (if any) from the
...read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Array-class
First
1
2
3
4
5
6
7
>>
Last
First
1
2
3
4
5
6
>>
Last
First
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !