Raise each element in an array to the power of p.
> power([1, 2, 3], 2)[1, 4, 9] Copy
> power([1, 2, 3], 2)[1, 4, 9]
The array of numbers.
The power to raise each element.
An array with each input element raised to the power of p.
Raise each element in an array to the power of p.
Example