How can I use lookup in pairs with a nested list?

I always get the error:
“X is not a well-formed list of pairs”

List looks like this:

((1234 (abc def) (ghi jkl)) (5678 (xyz uvw))

So when I look for 1234 I should get (abc def) (ghi jkl)

Does this make sense? Am I doing something wrong?

Yes you are doing something wrong. You didn’t post your blocks. :smile:


blocks here

The pairs should be only two elements, that’s why it’s called “pairs”

Maybe in the second item of the pairs, make a list of lists?

2 Likes

Ahh thanks for the suggestion!

Yes the list of list worked.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.