|
Scala example source code file (infix.scala)
The Scala infix.scala source codecase class op(x: op, y: Int, z: Int) { def op(y: Int, z: Int) = new op(this, y, z) } object Test extends App { val xs = new op(null, 0, 0) op (1, 1) op (2, 2) Console.println(xs) xs match { case null op (0, 0) op (1, 1) op (2, 2) => Console.println("OK") } } Other Scala examples (source code examples)Here is a short list of links related to this Scala infix.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.