[swift]反復文


  • for-in構文
  • の既存言語に似たfor-each文.
  • Dictionaryはマイナーバージョンの単品としてTupleに加入します.
  • for item in items{
    }
  • while構文
  • while integers.count > 1{
    	integers.removeLast()
    }
  • repeat-while構文
  • 既存言語のdo-whileは形態/動作と類似している.
  • repeat{
     //실행구문
    }while 조건
    
    repeat {
        integers.removeLast()
    } while integers.count > 0