If I\'m using the F# interpreter, I can define a simple function like this:
> // Function to check if x is an integer multiple of y > let multipleOf x y =
scala> val f = (i: Int, j: Int) => i % j == 0 f: (Int, Int) => Boolean = scala> f res2: (Int, Int) => Boolean = scala> def multipleOf(x: Int, y: Int) = x % y == 0 multipleOf: (x: Int, y: Int)Boolean scala> :type multipleOf(_, _) (Int, Int) => Boolean