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 vote130 views1 answer
- 1 vote118 views1 answer
- 0 vote114 views1 answer
- 1 vote112 views1 answer
- 1 vote109 views1 answer
- 1 vote179 views2 answers
- 0 vote116 views1 answer
- 1 vote125 views1 answer
- 0 vote119 views1 answer
- 0 vote117 views1 answer