Let values = [3.0,6.0,9.0,1.0] let squares = values.map {$0 * $0} print(squares)
Let values = [3.0,6.0,9.0,1.0] let squares = values.map {$0 * $0} print(squares)
0
Let values = [3.0,6.0,9.0,1.0] let squares = values.map {$0 * $0} print(squares)
0
Source: rosettacode.org
- 4 votes249 views1 answer
- 0 vote229 views5 answers
- 25 votes289 views6 answers
- 6 votes219 views1 answer
- 2 votes228 views1 answer
- 0 vote233 views1 answer
- 0 vote229 views2 answers
- 1 vote239 views1 answer
- 0 vote234 views1 answer
- 0 vote223 views1 answer