Am 23.10.2022 um 00:23 schrieb Cottrell, Allin:
On Sat, Oct 22, 2022 at 6:08 PM Sven Schreiber
<sven.schrei...@fu-berlin.de> wrote:
Thanks, Allin, but after Artur's intervention it's not clear to me whether "-="
is officially supported or not? And if it is (for which I'm not pushing), would it remove
all occurrences or just the first one?
Yes, it's officially supported (the relevant Guide chapter now
reflects this). But it only works for arrays of strings, and it
removes all occurrences from the array.
I've also documented the use of a negative index with arrays: this
works to remove an element from an array of any type, For example, one
can use
A = A[-2]
to remove the second element from array A.
Aha! So the natural follow-up question is: what about indexing vectors
with this? Like A[- {1,3}] ?
thanks
sven
_______________________________________________
Gretl-users mailing list -- gretl-users@gretlml.univpm.it
To unsubscribe send an email to gretl-users-le...@gretlml.univpm.it
Website:
https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/