object Test2 {
def main(args: Array[String]): Unit = {
val list = List("kitty", "snoopy", "scala")
superFun(subFun, list)
}
// def subFun(x: String): String = {
// "hello" + x
// }
val subFun = (x: String) => "hello " + x
val superFun = (f: String=>String, list: List[String]) => list.foreach(item => println(f(item)))
}