a guest Dec 9th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. object MathOps {
  2.   val add = (a: Int, b: Int) => a+b
  3.   val sub = (a: Int, b: Int) => a-b
  4.   val pow = (a: Int, b: Int) => Math.pow(a,b)
  5. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand