|
Scala example source code file (fromjava.java)
The Scala fromjava.java source codeimport scala.*; import scala.math.Ordering; import scala.math.Numeric; import scala.collection.Seq; import scala.collection.Traversable; import scala.collection.Traversable$; import scala.collection.immutable.Set; import scala.collection.immutable.HashSet; import scala.collection.immutable.Map; import scala.collection.immutable.Map$; import scala.collection.immutable.HashMap; import scala.collection.immutable.Vector; import scala.collection.immutable.List; import scala.collection.generic.CanBuildFrom; class A { }; class B { }; // This one compiles but it would be better if it didn't. // Checking in under pos anyway in the interests of making sure // we are informed if the status changes. class Contra { // Not an Ordering<Character>. static Ordering<Object> charOrd = scala.math.Ordering$Char$.MODULE$; public boolean useCharOrd() { return charOrd.compare(new Object(), new Object()) == 0; } static Numeric<?> intNum = scala.math.Numeric$IntIsIntegral$.MODULE$; } public class fromjava { public static Function1<A, B> f1 = new scala.runtime.AbstractFunction1() { public B apply(A a) { return null; } }; public static Function1<Tuple2 extends Object, B>, B> f2 = new scala.runtime.AbstractFunction1 Other Scala examples (source code examples)Here is a short list of links related to this Scala fromjava.java 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.