「Swift」配列の先頭、最後の要素を取得する

サンプルコード
let cityArr = [“tokyo", “oosaka", “fukuoka","nagoya","yokohama"]

print(cityArr.first!) // “tokyo"
print(cityArr.last!) // “yokohama"

Software

Posted by arkgame