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
- 0 vote109 views2 answers
- 0 vote178 views1 answer
- 0 vote139 views1 answer
- 0 vote150 views1 answer
- 0 vote132 views1 answer
- 1 vote146 views2 answers
- 7 votes213 views2 answers
- 0 vote125 views3 answers
- 0 vote126 views1 answer
- 0 vote121 views1 answer