extension Int{

    func repeatition( task: () -> Void){

        for _ in 0..<self{

            task()

        }

    }

}


3.repeatition{

    print("hello")

}


3.repeatition(task: print("Hello"))



두 메소드 호출하는데 왜 아래꺼는 오류 뜨는거임?
후위 클로져 문법이니까 위랑 아래 메소드 똑같은 동작 해야하는거 아님?