Im trying to observe the devices inside chains and using the following code. This observes the selected track and any changes to devices. Its working ok, however it is printing out multiple times. Could this be because of my use of zl iter?
Im just trying to receive lists like this:
Devices: id 1 id 2 id 3 id 4
Chains: id 1 id 2 id 3 id 4
Devices in chains: id 5 id 6 id 7 id 8
But instead it prints out each line between 2 and 4 times. so devices in chains is:
id 5 id 6 id 7 id 8 id 5 id 6 id 7 id 8 id 5 id 6 id 7 id 8 id 5 id 6 id 7 id 8
Im sure its something stupid I havent thought about. Would be very grateful if someone can point me in the right direction as to what I might be doing wrong.