Skip to content

Instantly share code, notes, and snippets.

@jaybobo
Forked from tennety/IntroClues.md
Last active August 29, 2015 14:01
Show Gist options
  • Save jaybobo/5f7d2b772458ed1868e1 to your computer and use it in GitHub Desktop.
Save jaybobo/5f7d2b772458ed1868e1 to your computer and use it in GitHub Desktop.

#firstguess

1 8 each 10 cycle 11 partition 12 .shuffle

2 initialize 3 <=> 4 5 .reject 6 7 9 .to_sym

#answers?

1 each_pair (each) 8 each 10 cycle 11 partition 12 .shuffle

2 initialize 3 <=> 4 5 .reject 6 .grep 7 index 9 .to_sym

Across

  1. Method on Hash that yields each key-value pair to the given block

  2. Method in Enumerable that takes an object, then iterates each element in the collection, returning the object

  3. Method in Enumerable that repeats a block a given number of times or forever if given nothing or nil

  4. Method in Enumerable that separates an array in two based on the truth value of the given block

  5. Method on Array that returns a new, shuffled array

Down

  1. Method which is run immediately after a new object is created

  2. Mixin that allows implementation of sorting with the "spaceship" operator

  3. Enumerable method which returns all elements before the block returns a falsy value

  4. Method on Enumerable that returns an array of elements for which the given block returns a falsy value

  5. Method on String that generates an array of matches for the given Regexp or String argument

  6. Method on String that returns whether or not it starts with a given substring

  7. Method on string that converts it to a symbol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment