The source of all great mathematics is the special case, the concrete example. It is frequent in mathematics that every instance of a concept of seemingly great generality is in essence the same as a small and concrete special case.
Get it working, then
Get it right, then (and only then)
Get it optimised
It's a mindset; trying to get the most general result in one iteration NEVER works.