mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
do not apply substitutor twice (IDEA-101752)
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
public interface Iso<T, R> {
|
||||
T deply(R r);
|
||||
|
||||
default Iso<R, T> inverse() {
|
||||
final Iso<T, R> z = this;
|
||||
return new Iso<R, T>() {
|
||||
@Override
|
||||
public R deply(T t) {
|
||||
throw null;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
static <T, R> Iso<R, T> inverse(Iso<T, R> z) {
|
||||
return new Iso<R, T>() {
|
||||
@Override
|
||||
public R deply(T t) {
|
||||
throw null;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user