Created
December 14, 2013 18:11
-
-
Save rtoal/7962700 to your computer and use it in GitHub Desktop.
Rubin's "'Goto Considered Harmful' Considered Harmful" as a Python One-Liner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
next((i for i,row in enumerate(a) if all(x == 0 for x in row)), -1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment