DolphinDB中有类似 python 中 zip 的方法吗

请教一下,ddb中有类似 python 中 zip 的方法吗?我希望让 x,y 同时循环赋值为 [1, 2, 3] 和 [4,5,6],例如:

>>> a = [1,2,3]
>>> b = [4,5,6]
>>> list(zip(a,b))  # list() 转换为列表
[(1, 4), (2, 5), (3, 6)]


请先 登录 后评论

1 个回答

wale
x=1 2 3 
y=4 5 6 
loop(pair, x, y)

输出:

offset	0	1	2
0	[1,4]   [2,5]   [3,6]

请先 登录 后评论