Joined October 2014
·
0 mv6vd4nf2s 6kumeaqqlduvt27fly4me2n 5duno1e1z ymhgp99brhrg3bv00zk7nxx6p6ijl 1

Sebastián Galdeano

Argentina
·

Thanks for you help!!
I found another way to do this.

Working with your example:
val items = List(Item("Apple","Fruit", 1.50),Item("Pear", "Fruit", 2.00))
val itemsonsale = items.copy(price = 0.50)

I'm in the process of learning scala too

Regards!!

Achievements
1 Karma
0 Total ProTip Views