Ruud H.G. van Tol on Tue, 15 Sep 2026 12:37:22 +0200


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

vecmax issue



? version()
%1 = [2, 17, 4]

? vecmax([[0], [1]])
  ***   at top-level: vecmax([[0],[1]])
  ***                 ^-----------------
  *** vecmax: forbidden comparison t_VEC (1 elts) , t_VEC (1 elts).
  ***   Break loop: type 'break' to go back to GP prompt
break>

Is that as expected?

? vecsort([[0], [1]],,4)[1]
%2 = [1]

-- Ruud