Timeline for Wrapping my head around generators
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 30, 2014 at 16:19 | comment | added | David Harkness | One variation when the logic is this simple is to check the optional argument once and branch--either to separate functions as you suggest or inline. It's a minor performance improvement but may help to highlight how the optional argument applies. | |
| Mar 30, 2014 at 16:12 | history | edited | Ocelot20 | CC BY-SA 3.0 | added 598 characters in body |
| Mar 30, 2014 at 16:04 | history | answered | Ocelot20 | CC BY-SA 3.0 |