Transcript from the "Challenge 1: Purify a Function" Lesson
>> Kyle Simpson: So I want you to practice with those two techniques. Exercise one gives you an impure function. First step, make a wrapper around it. Make a bar wrapper around the impure food that contains all of the side effects. It passes in any context it needs. Captures any outputs, returns the outputs that are necessary.
[00:00:22] Here's a hint, if you need to return multiple outputs, which you will, a nice, convenient way of doing that is return them as an array.