Skip to content

Instantly share code, notes, and snippets.

@iamjason
Last active April 18, 2016 15:37
Show Gist options
  • Select an option

  • Save iamjason/94d699cd0d993cb1054948f55d5d3ff7 to your computer and use it in GitHub Desktop.

Select an option

Save iamjason/94d699cd0d993cb1054948f55d5d3ff7 to your computer and use it in GitHub Desktop.

Revisions

  1. iamjason revised this gist Apr 18, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions noah's ark.swift
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    // Inspired by: https://gist.github.com/futurepaul/8b99d502006cf8a67a93
    import UIKit
    typealias ๐Ÿพ = String

  2. iamjason created this gist Apr 18, 2016.
    22 changes: 22 additions & 0 deletions noah's ark.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    import UIKit
    typealias ๐Ÿพ = String

    let ๐ŸŒ = "๐Ÿฆƒ๐Ÿ•Š๐Ÿถ๐Ÿบ๐Ÿฑ๐Ÿญ๐Ÿน๐Ÿฐ๐Ÿธ๐Ÿฏ๐Ÿจ๐Ÿป๐Ÿท๐Ÿฝ๐Ÿฎ๐Ÿ—๐Ÿต๐Ÿ’๐Ÿด๐Ÿ‘๐Ÿ˜๐Ÿผ๐Ÿง๐Ÿฆ๐Ÿค๐Ÿฅ๐Ÿฃ๐Ÿ”๐Ÿ๐Ÿข๐Ÿ›๐Ÿ๐Ÿœ๐Ÿž๐ŸŒ๐Ÿ™๐Ÿš๐Ÿ ๐ŸŸ๐Ÿฌ๐Ÿณ๐Ÿ‹๐Ÿ„๐Ÿ๐Ÿ€๐Ÿƒ๐Ÿ…๐Ÿ‡๐Ÿ‰๐ŸŽ๐Ÿ๐Ÿ“๐Ÿ•๐Ÿ–๐Ÿ๐Ÿ‚๐Ÿฒ๐Ÿก๐ŸŠ๐Ÿซ๐Ÿช๐Ÿ†๐Ÿˆ๐Ÿฉ"

    let ๐Ÿšข = ๐ŸŒ.characters
    .map { (๐Ÿšœ) -> ๐Ÿพ in
    return ๐Ÿพ(๐Ÿšœ)
    }
    .map { (๐Ÿ’•) -> ๐Ÿพ in
    switch ๐Ÿ’• {
    case "๐Ÿ‘", "๐Ÿ", "๐Ÿ", "๐Ÿ‚":
    return (๐Ÿ’• + ๐Ÿ’• + ๐Ÿ’• + ๐Ÿ’• + ๐Ÿ’• + ๐Ÿ’• + ๐Ÿ’• + ๐Ÿ’• + ๐Ÿ’• + ๐Ÿ’• + ๐Ÿ’• + ๐Ÿ’• + ๐Ÿ’• + ๐Ÿ’•)

    default:
    return (๐Ÿ’• + ๐Ÿ’•)

    }

    }

    print(๐Ÿšข)