Am 02.11.2020 um 14:05 schrieb Allin Cottrell:
On Mon, 2 Nov 2020, Sven Schreiber wrote:
> Exactly - BTW in this context it might in principle also be useful to
> have a function that constructs a mapping from the strings array to a
> vector of numerical (integer) codes. Doesn't have to be C, could be
> hansl, and I personally haven't needed it so far. Still I could give it
> a try with hansl if that's wanted.
It would help for that task if values() and uniq() could be applied to
strings arrays as well as vectors, which wouldn't be too difficult to
It would be nice of course!
Actually I guess many string functions could be generalized to work on
string arrays element-per-element --for example like strlen already
does-- returning either vectors or strings arrays:
atof, fixname, nlines, regsub, strncmp, strstr, strstrip, strsub, substr
(though maybe a bit awkward?), tolower, toupper.
Should I open a ticket? (Which wouldn't imply a decision yet.)