Double Each Value
Easy · Collections
map transforms every element. Write doubled(_:) that returns each value multiplied by 2, without mutating the input.
Next: Numbers Up To N
Easy · Collections
map transforms every element. Write doubled(_:) that returns each value multiplied by 2, without mutating the input.
Next: Numbers Up To N