superruzafa / visual-scala-reference

Visual Scala Reference
https://superruzafa.github.io/visual-scala-reference
269 stars 28 forks source link

Add empty case on reduce #6

Closed exoego closed 5 years ago

exoego commented 5 years ago

Add a description to reduce regarding empty case as same as so in reduceLeft & reduceRight, so that reader can know what happens if reduce is invoked on empty collection.

reduceOption already has a description.

exoego commented 5 years ago

https://travis-ci.org/superruzafa/visual-scala-reference/builds/554449821#L3280 I think this CI error is false, since this PR does not touch startsWith.2.tex. Could you trigger rerun?

superruzafa commented 5 years ago

Looks good.