In Scala I have the next command:
lPServ <- Pservs.getAll(.....some logical condition.....)
each element of lPserv has a "price" and "quantity" fields. For this list, I need to get the total of adding each
e.price * e.quantity
where e is element of lPServ. Any ideas?
Thx
If Pservs is:
then: