Created
October 19, 2013 01:20
-
-
Save Varriount/7050608 to your computer and use it in GitHub Desktop.
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
# Old, C-Sharp code | |
string longtext = text1.Length > text2.Length ? text1 : text2; | |
string shorttext = text1.Length > text2.Length ? text2 : text1; | |
#New, nimrod code. | |
var longText = textOne | |
var shortText = textTwo | |
if len(textOne) > len(textTwo): | |
swap(longText, shortText) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment