Skip to content

Instantly share code, notes, and snippets.

@edignot
Forked from hannahhch/iterator-methods.md
Created March 22, 2020 17:25
Show Gist options
  • Save edignot/cf1b7611ff52e9f73de3c67223b7a9d5 to your computer and use it in GitHub Desktop.
Save edignot/cf1b7611ff52e9f73de3c67223b7a9d5 to your computer and use it in GitHub Desktop.

Paired Practice Time!

The best way to get comfortable with these methods is to practice them, so we will!

You'll be with a partner in a breakout room to work through some practice problems. Assign one person to be the driver and the other to be the navigator. It might be helpfulful to switch these roles off and on so you have the opportunity to be both!

Instructions

  • Start with #1
  • Have the driver fork a copy of the REPL
  • Work through problems together (you'll have 15 minutes for each REPL)

Notes:

  • I will let you know when your 15 minutes are up and its time to move on to the next station!
  • There's no deliverable, but I suggest keeping this somewhere handy to reference.
  1. forEach
  2. map
  3. find
  4. filter
  5. reduce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment