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 itredrield
06/11/2017, 10:49 PMfun <T> hello(): T { }, you'll be told that T can be marked outredrield
06/11/2017, 10:49 PMhello() doesn't consume, or have any parameters of type Tredrield
06/11/2017, 10:49 PMredrield
06/11/2017, 10:50 PMfun <T> hello(thing: T): String { }, you'll be told T can be marked inredrield
06/11/2017, 10:50 PMredrield
06/11/2017, 10:50 PMredrield
06/11/2017, 10:50 PMredrield
06/11/2017, 10:50 PMfun <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