• + 0 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