1. Technology

Articles related to ruby arrays

How to Create Arrays in Ruby - A Basic Guide - About.com
This article explains and teaches how to use a arrays as a way to store multiple ... Storing variables within variables is a common thing in Ruby and is often ...
http://ruby.about.com/od/rubyfeatures/a/arrayhash.htm
Two Dimensional Arrays in Ruby - About.com
We'll use a two dimensional array to represent the 2048 game board, but how do we create a 2D array in Ruby?
http://ruby.about.com/od/Writing-a-2048-Clone-in-Ruby/fl/Two-Dimensional-Arrays-in-Ruby.htm
How to Create and Use Hashes in Ruby - About.com
Arrays are not the only way to manage collections of variables. Another type of collection of variables is the hash, also called an associative array. A hash is like  ...
http://ruby.about.com/od/rubyfeatures/a/hashes.htm
Creating Hashes from Arrays - Ruby - About.com
There are a few ways, but there's a way built into Ruby that fits onto a single line. ... You have one array of column names, and then an array of arrays ...
http://ruby.about.com/od/rubysbasicfeatures/ss/Creating-Hashes-From-Arrays.htm
Method for Mapping the Values of an Array - Ruby - About.com
Iterating over arrays isn't the only trick up Ruby's sleeve. Having the ability to map arrays (and other enumerable collections) is a powerful feature.
http://ruby.about.com/od/rubysbasicfeatures/ss/Mapping-Arrays.htm
Basic Array Operations - Ruby - About.com
Beyond creating Arrays with literals, indexing the elements and iterating over the elements, there are a lot of very useful things that can be done with Arrays.
http://ruby.about.com/od/rubysbasicfeatures/ss/Basic-Array-Operations.htm
Introduction to Arrays - Ruby - About.com
Arrays are the primary method of storing an ordered collection of objects in Ruby.
http://ruby.about.com/od/rubysbasicfeatures/ss/Introduction-To-Arrays.htm
How Can I Rotate an Array in Ruby? - About.com
Rotating an array is not something the default Ruby library includes. However, it is quite easy and by using Ruby's open classes, you can add it to the Array class  ...
http://ruby.about.com/od/faqs/f/rotatearray.htm
How to Make Deep Copies in Ruby - About.com
While this may seem simple, and it is for simple objects, as soon as you have to make a copy of a data structure with multiple array or hashes on the same object,  ...
http://ruby.about.com/od/advancedruby/a/deepcopy.htm
Rotating a Two Dimensional Array in Ruby - About.com
In order to implement the 2048 algorithm cleanly, we'll need to know how to rotate a 2D array by 90 degrees in Ruby.
http://ruby.about.com/od/Writing-a-2048-Clone-in-Ruby/fl/Rotating-a-Two-Dimensional-Array-in-Ruby.htm
1  |  2  |  3  |  4  |  5  |  6  |  7  |  8  |  9  |  10      Next

©2014 About.com. All rights reserved.