Write a recursive function called sumPower, that takes a list of numbers, and computes the sum of
Question:
Write a recursive function called sumPower, that takes a list of numbers, and computes the sum of 2 to the power of each element in the list.
The following interactions log illustrates the semantics of sumPower:
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
An Experiential Introduction To Principles Of Programming Languages
ISBN: 9780262045452
1st Edition
Authors: Hridesh Rajan
Question Posted: