I am confused with this symbol <: and the return type T=>T. This seem to return a function. I got a function back when unit testing this function. How do I check the result ?
def prepend[T <: Message](node: Set[String]): T => T = { out =>
...
out.append("test")
}