π¬The Dictionary Inner Joiner
Want to merge two Dictionaries?
Last updated
Want to merge two Dictionaries?
Last updated
Youβll learn about the quickest way to adapt environment variables; rename and filter them to match connector requirements, using the dictionary βInner Joinerβ.
Most CRANQ nodes that deal with data (that is more complex than a simple number or string), receive and send signals as Dictionaries. But sometimes we need to adjust the Values or Keys of those Dictionaries, for example, changing them from camel-case to uppercase.
The Inner Joiner takes the values of Dictionary A, and looks for the same values among the keys of Dictionary B. For each matching pair, an item will be added to the result - where the key is the corresponding key from A, and the value is the corresponding value from B.
The matched values on the inside here will disappear from the result as if they were pinched out. This is why it's called an Inner Joiner.
Anyhow, let's follow Dan in this video where he explains the Inner Joiner, especially in regards to Environment Variables, where it's often used.