DEV Community

Discussion on: Daily Challenge #16 - Number of People on the Bus

Collapse
 
mattonem profile image
maxmattone

Smalltalk --- because it seems nobody did it yet:

result := arr sum: [ :aStop | aStop first - aStop second ]