I would like to define a method on []T , where T is the type I defined.
It seems like I should define a new type for this, but this prevents me from using all the built-in functions for slicing this new type (e.g. len ).
Is there a way to do this to just do regular functions, not methods? (It seems like append() may be a method, but not?)
source share