This site is a preview of the curriculum for our Summer 2018 bootcamp in Burlington, Vermont. As we continue our preparation, courses and lessons will appear and disappear; we will rename, rearrange, clarify, and obfuscate as needed... Please consider this a work in progress and keep checking in.

Ruby Basics:
Collections


Slides

Collections

  • Arrays
  • Hashes
  • Ranges

Ref. WGR Chapter 9, Collection and container objects

Array vs. Hash

Array Hash
ordered list of values unordered set of key/value pairs
has an index that must be an integer has a key that can be any object
(symbol, number, string, another hash, etc.)
also called List, Vector, Stack(?) Hash is also called Map, Dictionary
literals are defined with [ ] literals are defined with { }
accessed with [ ] also accessed with [ ]


Comments

comments powered by Disqus