1. Tech

Articles related to arrays and hashes

Creating Hashes from Arrays - Ruby - About.com
How do you create hashes from tabular data? There are a few ways, but there's a way built into Ruby that fits onto a single line.
http://ruby.about.com/od/rubysbasicfeatures/ss/Creating-Hashes-From-Arrays.htm
How to Create and Use Hashes in Ruby - About.com
This article explains and teaches how to use a associative arrays (hashes) as a way to store multiple variables in one data structure.
http://ruby.about.com/od/rubyfeatures/a/hashes.htm
Building Hashes From Arrays - Ruby - About.com
It's often useful to build hashes from an array. This can be done easily using the Hash[ … ] syntax. It'll take an unlimited number of arguments (as long as it's an ...
http://ruby.about.com/od/tutorials/ss/Building-Hashes_5.htm
Everything You Wanted To Know About Hashes - Ruby - About.com
Hashes are the bread and butter of Ruby data structures. For any unordered structure, you'll find hashes used everywhere. If it's ordered, you'll see arrays used, ...
http://ruby.about.com/od/rubysbasicfeatures/ss/Everything-You-Wanted-To-Know-About-Hashes.htm
Hashes - Ruby - About.com
This all comes down to how hashes (also called "associative arrays") work. Hashes are a tree structure of smaller arrays. In memory, the tree structure is index by ...
http://ruby.about.com/od/rubysbasicfeatures/ss/Hashes.htm
Ruby's Basic Features: Blocks, Loops, Arrays & more - About.com
This article explains and teaches how to use a associative arrays (hashes) as a way to ... There's more to do with hashes than just store and retrieve objects.
http://ruby.about.com/od/rubysbasicfeatures/
Mapping Arrays - 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
Using JSON: Structure of a JSON Document - Ruby - About.com
Also, unlike XML, JSON sticks to Arrays and Hashes for its document structure, whereas XML is much more free-form. While this may sound like a disadvantage  ...
http://ruby.about.com/od/tasks/a/Structure-Of-A-Json-Document.htm
Introduction to Arrays - Ruby - About.com
In fact, it's quite odd that you may have learned about Hashes before Arrays as many Ruby programmers do. In many languages, the Hash is a rather small ...
http://ruby.about.com/od/rubysbasicfeatures/ss/Introduction-To-Arrays.htm
How to Make Deep Copies in Ruby - About.com
It will only be as deep as the first array, any deeper arrays, hashes or other object will only be shallow copied. There is another method worth mentioning, clone.
http://ruby.about.com/od/advancedruby/a/deepcopy.htm
1  |  2  |  3  |  4  |  5  |  6  |  7  |  8  |  9  |  10      Next

©2015 About.com. All rights reserved.