Am 06.10.2020 um 15:28 schrieb Allin Cottrell:
On Tue, 6 Oct 2020, Sven Schreiber wrote:
> As for strlen() I just checked and just recently it was extended to
> string-valued series (and arrays). My guess is that nelem shouldn't do
> that, so probably keep that as well?
Good point. I've just updated the strlen doc to reflect that extension.
And talking about undocumented extensions, maybe we should mention
that nelem() can be applied to strings, in which case it returns the
number of bytes as opposed to the number of UTF-8 characters. Or we
could get rid of that.
I think it would be good (and easy) to just add a note to the strlen
information, where it currently is silent about how to actually count
the bytes. No reason to scrap it AFAICS.