Home › Forums › kdb+ › .z.pd function throwing error for non unique handles › Reply To: .z.pd function throwing error for non unique handles
-
Your function is using peach and setting -s -2, it is expecting handles on .z.pd, which is blank and hence failing.
Start your process
q -s 2
q).z.pd:
u#
int$()q).z.pd
u#
int$()q){x+til 2} peach til 2
0 1
1 2
q)\s -2
q){x+til 2} peach til 2
'.z.pd - expected unique vector of int handles
[0] {x+til 10} peach til 10
^
q))