Callbacks

  • Certain types of problems come up a lot in programming (find, filter, map, etc)
  • Solutions usually look the same except for a critical "decision point"
  • Can we find a way to swap out just the "decision point" in a function?
  • We could solve these problems once and only swap out the decision point

11 / 21