Given an array of integers as strings and numbers, return the sum of the array values as if all were numbers.
Return the answer as a number, not a string.
Examples:
([9, 3, '7', '3']) => 22
(['5', '0', 9, 3, 2, 1, '9', 6, 7]) => 42
(['3', 6, 6, 0, '5', 8, 5, '6', 2,'0']) => 41
*^You can assume that you will always recieved valid input
Language: Perl 6 (subroutine)
Length:
1713Solution:
Demo:
Language: Perl 6 (builtin)
Length: 0
Demo: