https://kotlinlang.org logo
g

groostav

08/11/2016, 1:03 AM
is there any chance I can get something like
Copy code
fun <T != Unit> something(work: () -> T){ ...
though I feel silly for asking because afaik literally no other language with a similar type system does this.