liminal
06/11/2017, 10:48 PMredrield
06/11/2017, 10:48 PMin
and out
tell the compiler whether your function or class produces a generic, or consumes itfun <T> hello(): T { }
, you'll be told that T can be marked out
hello()
doesn't consume, or have any parameters of type Tfun <T> hello(thing: T): String { }
, you'll be told T can be marked in
fun <T> hello(inst: T): T { }
is an example of thatliminal
06/11/2017, 10:51 PMtapchicoma
06/12/2017, 7:00 AMazabost
06/12/2017, 10:01 AM