Last active
April 18, 2016 15:37
-
-
Save iamjason/94d699cd0d993cb1054948f55d5d3ff7 to your computer and use it in GitHub Desktop.
Noah's Ark w/ Swift 2 using immutable values
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
// Inspired by: https://gist.github.com/futurepaul/8b99d502006cf8a67a93 | |
import UIKit | |
typealias ๐พ = String | |
let ๐ = "๐ฆ๐๐ถ๐บ๐ฑ๐ญ๐น๐ฐ๐ธ๐ฏ๐จ๐ป๐ท๐ฝ๐ฎ๐๐ต๐๐ด๐๐๐ผ๐ง๐ฆ๐ค๐ฅ๐ฃ๐๐๐ข๐๐๐๐๐๐๐๐ ๐๐ฌ๐ณ๐๐๐๐๐๐ ๐๐๐๐๐๐๐๐๐๐ฒ๐ก๐๐ซ๐ช๐๐๐ฉ" | |
let ๐ข = ๐.characters | |
.map { (๐) -> ๐พ in | |
return ๐พ(๐) | |
} | |
.map { (๐) -> ๐พ in | |
switch ๐ { | |
case "๐", "๐", "๐", "๐": | |
return (๐ + ๐ + ๐ + ๐ + ๐ + ๐ + ๐ + ๐ + ๐ + ๐ + ๐ + ๐ + ๐ + ๐) | |
default: | |
return (๐ + ๐) | |
} | |
} | |
print(๐ข) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment