This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.junit.Test | |
class SolutionTest { | |
data class Person(val name:String, val board: IntArray){ | |
var age:Int = 0 | |
override fun equals(other: Any?): Boolean { | |
if (this === other) { | |
return true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun myFunIns(data:Int, myFun:(arg:Int)->Int):Int{ | |
return myFun(data) | |
} | |
fun main(){ | |
// 1.1 | |
var result1 = myFunIns(123, { | |
it * 2 | |
}) |