You are viewing a single comment's thread. Return to all comments →
There is no recommended way to interrupt an "expression" loop (i.e., comprehension, filter, map, reduce). You must use a conventional loop.
More on this, with a hack: http://stackoverflow.com/questions/9572833/break-list-comprehension
Plus Minus
You are viewing a single comment's thread. Return to all comments →
There is no recommended way to interrupt an "expression" loop (i.e., comprehension, filter, map, reduce). You must use a conventional loop.
More on this, with a hack: http://stackoverflow.com/questions/9572833/break-list-comprehension