AtCoderの問題を解いている際に、文字列を1文字ずつ分割する必要があったのでメモ
let charArray = Array("abcdef")
print(charArray)
// ["a", "b", "c", "d", "e", "f"]
print(type(of: charArray[0]))
// Character
Go to list of users who liked
More than 3 years have passed since last update.
AtCoderの問題を解いている際に、文字列を1文字ずつ分割する必要があったのでメモ
let charArray = Array("abcdef")
print(charArray)
// ["a", "b", "c", "d", "e", "f"]
print(type(of: charArray[0]))
// Character
Register as a new user and use Qiita more conveniently
Go to list of users who liked