Trying to convert some java code to kotlin, given the following method
public class Option<T> {
public <U> Option<U> map(Function<T, U> mapper) {
throw new IllegalStateException();
}
}
kotlin conversion will give this
I cannot understand whats the problem here, and how do i create equivalent method in kotlin? (thats the java.util.Function)
P.S. could not come up with some better question summary... feel free to change.
