Denis Simon on Wed, 29 Jan 2025 22:29:52 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

select and vecsmall


Hi,

The function select() doesn't seem to accept Vecsmall.

v=Vecsmall([1,2,3,4]);
select(i->i%2,v)
  ***   at top-level: select(i->i%2,v)
  ***                 ^----------------
  *** select: incorrect type in select (t_VECSMALL).
  ***   Break loop: type 'break' to go back to GP prompt

Is there any good reason ?

Denis SIMON.