Seems too trivial to merit it’s own name. It’s just x./norm(x)
, so I’m used to either writing that, or, if I need to pass it along somewhere, making an anonymous function.
I don’t mind it, it just seems like something that could be trimmed away. I see it has a companion, normalize!
which does slightly more.
It’s a question, what is the threshold for something to be non-trivial enough or used enough that it is worthwhile. Anyway, normalize
and this proposed new function won’t live in Base, so no big deal.