unintuitive for-loop behavior
Gregory Ewing
greg.ewing at canterbury.ac.nz
Sat Oct 1 06:56:45 EDT 2016
More information about the Python-list mailing list
Sat Oct 1 06:56:45 EDT 2016
- Previous message (by thread): unintuitive for-loop behavior
- Next message (by thread): unintuitive for-loop behavior
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Random832 wrote:
> for a in collection:
> b = some_calculation_of(a)
> final b: do_something_with(lambda: ... b ...)
I would prefer something like
for a in collection:
let b = some_calculation_of(a):
do_something_with(lambda: ... b ...)
--
Greg
- Previous message (by thread): unintuitive for-loop behavior
- Next message (by thread): unintuitive for-loop behavior
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list