How to make Service/Context generic?
I want to add a type parameter to the Context. For example, I’ll take code directly from the tutorial
But what if I want to parameterize the output type of
Guideline says avoid X/Y questions so I won’t post my attempts, but I basically tried
But what if I want to parameterize the output type of
next()?Guideline says avoid X/Y questions so I won’t post my attempts, but I basically tried
class Random<T> and function<T>(){ return class …} style but they didn’t work 