Hi all,
I'm a beginner in Scala and I'm just curious about how Scala handles the type inference for this code snippet
trait Expression { .... }
def eval (binding : String => Boolean) : Expression => Boolean
I understand that binding is a function that converts String
to Boolean
, but why binding
at the same time could be declared as a member of Expression
? is it implicitly converted? How does it work?
Sorry if my question is a bit confusing
Thanks so much :D