|
|
|
|
|
by thaumasiotes
1920 days ago
|
|
For forEach that's easy: for el in values:
if el == 3: return
do_something_with( el )
For the other two, you still can, but you'll need to handle the control flow yourself, by doing something like goto or invoking a continuation. |
|