On Fri, 1 Oct 2021, Sven Schreiber wrote:
Hi, some random-but-inspired-by-real-work thoughts about gretl's
lists:
-- The fact that you can use index ranges with lists doesn't seem to be
documented, or is it? For example, a little bit to my amazement, this works:
<hansl>
open denmark
list L = LRM LRY IBO
ols L[1] const L[2 : nelem(L)]
</hansl>
(And in the future I guess even with "end" in place of "nelem(L)".)
In the present, in fact. That's in place since Jack remarked that
'end' didn't work for strings (plain strings, not arrays of
strings). Since strings and lists are handled in a similar manner,
'end' now works for both.
Maybe it should be mentioned in the list chapter.
Yes.
Allin