evhub / coconut

Simple, elegant, Pythonic functional programming.
http://coconut-lang.org
Apache License 2.0
4.05k stars 120 forks source link

Fix typo in pure-Python example for scan() #790

Closed Starwort closed 10 months ago

Starwort commented 10 months ago

The example as written for the pure-Python equivalent of scan() acts as a pass-through operator; this is due to a typo in the code, where x is appended to the output instead of max_so_far, as the actual behaviour of scan would require

evhub commented 10 months ago

Thanks for catching this!