create a postfix operator for any object
create a postfix operator for any object combining a class and an implicit
Copy this code and paste it in your HTML
def myPostfixOperator
: Boolean
= x
> 0; }
val y
: Boolean
= 1.
myPostfixOperator; //this is true
Report this snippet
Comments
Subscribe to comments