Join Slack
Communities
Powered by
if I have a `List<Pair<Double,Double>>...
# getting-started
b
bj0
11/21/2017, 11:23 PM
if I have a
List<Pair<Double,Double>>
, is there a way to
reduce
the list to a
Pair<Double,Double>
that's a sum of all the `.first`s and `.second`s,
without
creating a new throw-away
Pair
object for each step?
Open in Slack
Previous
Next