Created
December 11, 2012 12:32
-
-
Save olavocneto/4258240 to your computer and use it in GitHub Desktop.
Esse swap do python é muito louco!
This file contains 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
#!/usr/bin/env python | |
S[i], S[j] = S[j], S[i] # swap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PHP
https://coderwall.com/p/fdty8g?i=7&p=1&q=sort%3Aupvotes+desc&t%5B%5D=pyrocms&t%5B%5D=silex&t%5B%5D=statamic+cms&t%5B%5D=cakephp&t%5B%5D=similar_text