Function Literal 을 통해서 알아야할 것 : Functional Programming 에서 많이 쓰이는 기본적인 함수 작성의 방법이다. 이 방법을통해 익명함수 및 first-class function, 고차함수 모두 사용된다.

fun main(args: Array<String>) {
    val integerVal : Int//declare a value with an Integer Type as return type
    val functionLiteral : (Int) -> Unit // decalre a value with a Function Type as return type
    //정수의 리턴값을 가진것처럼 함수 타입 리턴값을 가진 변수를 선언했다.
    functionLiteral = { integer -> println("funnctionInside$integer")}
}
0