DolphinDB: How to quickly delete the last element of each vector in a tuple?

24 Views Asked by At

Suppose there is a tuple containing two vectors — (til 10, til 20), I want to delete the last element of each vector, that is, 9 and 19. Is there any convenient way to achieve this?

1

There are 1 best solutions below

0
On

Please try:

t = (til 10, til 20)
each(drop{, 1}, t)