The reduce function is a powerful and flexible tool. In which of the following situations would you use reduce, and in which should you use another tool we’ve covered in this book? ¡ You have a long sequence of words and you return only a sequence containing the letter A. ¡ You have a sequence of users and you want to transform them into just their User ID number. ¡ You have a series of users and you want to find the five who have purchased the most from you. ¡ You have a sequence of purchase orders and you want to find the average price of a purchase
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here