Skip to content

Instantly share code, notes, and snippets.

@ayoformayo
ayoformayo / reflect_on_learning.rb
Created June 9, 2013 19:51
REFLECT ON LEARNING FOR THE WINNNNNNNNN
#List 10 topics
#1. Recursion
#2. Pairing effectively
#3. Benchmarking
#4. Using Regex
#5. Using the zip method.
#6. When to use destructive methods effectively
#7. Loops- each, while, unless
#8. Using yield
#9. Writing in pseudocode.
#Array#map calls the passed block once for each element of the array it was called on.
#It creates and return a new array containing the new values.
#Array#inject combines each element of an enumerator by applying the operation specified in the attached block or
#represented by an operator/method symbol (like +, -, /). If a block is specified, the block is passed an accumulator value
#and the individual element. It then returns the value of memo.
#Array#select returns a new array containing all the elements of the passed array for which the passed block is true.
class Array