Created
April 27, 2019 09:50
-
-
Save yukin01/b652b0ada2ef5bfad55b87eb028ad424 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
var inputLines = [String]() | |
while let line = readLine() { | |
inputLines.append(line) | |
} | |
let rows = inputLines.dropFirst() | |
rows.forEach { print($0) } |
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 input = """ | |
1 | |
2 | |
3 | |
4 | |
5 | |
""" | |
let inputLines = input.split(separator: "\n").map { $0.description } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment