Look at the examples I have provided. There is no generalized, type-safe way to implement them without generics

code of conduct - report abuse