Created
December 4, 2014 18:54
-
-
Save aclissold/cc94d9b8c8567de9a5c4 to your computer and use it in GitHub Desktop.
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
let fruits = ["apple", "bananananana"] | |
/* | |
var s: String | |
if fruits.count == 1 { | |
s = "" | |
} else { | |
s = "s" | |
} | |
*/ | |
var s = fruits.count == 1 ? "" : "s" | |
println("An array with \(fruits.count) thing" + s) |
I kept in them because there's no hope of proving P = NP anyway.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lines 2-12 are redundant.