In Scala you can define your own operators:
With the above defines you can use it like:
To define unary operators you can prefix it with unary_. E.g. unary_!
In this page (written and validated by A. Gawali) you learned about Scala Operators . What's Next? If you are interested in completing Scala tutorial, your next topic will be learning about: Scala Option Class.