3 ms·
The correct signature for that method is something like (don't know whether this is the syntax) fun with<F super E>(F elt)
by lmm 10y ago
The correct signature for that method is something like (don't know whether this is the syntax)
fun with<F super E>(F elt)
- ScottBurson 10y agoI guess you mean (note the return type) fun with<F super E>(elt: F): FunctionalSet<F> That's an interesting suggestion, but I don't see any indication that Kotlin provides for type lower bounds in generic function constraints. (It does have type upper bounds; see the bottom of this page: http://kotlinlang.org/docs/reference/generics.html http://kotlinlang.org/docs/reference/generics.html).