For all the functions in this assignment I want you to write a recursive function. For functions the recurse on arrays, you may want to use the fact that xs.slice(1) returns an array consisting of all but the first element of xs. E.g. [2, 3, 5, 7, 11].slice(1) evaluates to a new array [3, 5, 7, 11]

Put definitions here.

Revisions: