I\'m hoping there is a way to define a type for a function in Scala.
For example, say I want a function that takes two Ints and returns a Boolean, I could define a f
trait Foo { type MyFunction = (Int,Int) => Boolean def checkInts(f: MyFunction) def checkInts(f: Option[MyFunction]) }