Ruby | Array class fill() operation
Array#fill() : fill() is a Array class method which fills the array with the element and that can be in a specific range. Syntax: Array.fill() Parameter: Array, element, range Return: array with specific element in the given range. Code #1 : Example for fill() method Ruby # Ruby code for fill() meth