Max Alekseyev on Wed, 05 Jun 2024 01:29:54 +0200


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

foreach: incorrect type in foreach (t_VECSMALL).


It looks like a weird restriction:

? forsubset([4,2],s, foreach(s,k,print(k)))
  ***   at top-level: forsubset([4,2],s,foreach(s,k,print(k)))
  ***                                   ^----------------------
  *** foreach: incorrect type in foreach (t_VECSMALL).
  ***   Break loop: type 'break' to go back to GP prompt

Regards,
Max