mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-14 17:25:38 +07:00
18 lines
319 B
Java
18 lines
319 B
Java
public class Seq<T> {
|
|
public Seq() {}
|
|
|
|
public Seq(T x, Seq<T> xs) {
|
|
}
|
|
|
|
static <T> Seq<T> nil () {
|
|
return new Seq<T> ();
|
|
}
|
|
|
|
static <V> Seq<V> cons (V x, Seq<V> xs) {
|
|
return new Seq<V> (x, xs);
|
|
}
|
|
|
|
static void foo() {
|
|
Seq<String> s = <ref>cons("abc", nil());
|
|
}
|
|
} |