TypeScript Generic Collection Implementation, it’s, you know, generic

 I had the need for a Generic Collection like data structure recently while messing around in TypeScript (while making this goofy implementation of the Medical School / Resident Matching Algorithm….with balls for some reason) You can check out the implementation in a nice typescript playground on typescript.org sandbox, or if you’d rather I have it below….