On Wed, 19 Apr 2017, Allin Cottrell wrote:
On Wed, 19 Apr 2017, Sven Schreiber wrote:
> Hi,
>
> voilà:
>
> <hansl>
> nulldata 10
> series x = normal()
> big = 1
>
> list hey = big ? x : x y # works
>
> list hey = big ? x : x y z # "UNDEF" error
> </hansl>
OK, fixed in git. But I wonder if, for use in this sort of context, we might
want a more syntactically robust way of defining a list (as opposed to "space
between series IDs = list concatenation"). I guess we could have a deflist()
function on the same pattern as defarray(). I'd have to verify that this
really is more robust in the ternary context, though I think it should be.
The idea is that the above might be written as
list hey = big ? x : deflist(x,y,z)
This would be very nice. Perhaps deflist() should take lists as well as
series as arguments.
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------