Yet another "unique" function and the NaN (Not a "Not a Nusiance") I was playing around with sorting and decided (yet again) that I was frustrated by some of the restrictions. One thing led to another, and before I knew it, I was hip deep in ways to "improve" the lookup functions.
While contemplating Mathcad Zen Principles 3, 6, 7, 16, and 17, I wondered whether "unique" would be a worthwhile addition to the match/lookup modifiers.
Then my mind went blank when faced with how to handle NaNs. In principle, IEEE 754 NaNs are distinct. And they would be if a standard Mathcad user had any way to distinguish between them, but they're harder to tell apart than Zathras and Zathras. To the Mathcadder in the street, they might as well be indistinguishable, for all the good their distinctiveness does.
So, I've written two versions of unique to cater for both cases. The question is which one would a user expect to be the default (and hence all lowercase) version?
I'v