Is it possible to call a method using infix notation?
For example, in Haskell, I could write the following function:
x `isAFactorOf` y = x % y == 0
and then use it like:
if 2 `isAFactorOf` 10 ...
Which in some cases allows for very readable code. Is anything similar to this possible in Scala? I searched for "Scala infix notation", but that term seems to mean something different in Scala.