Remember Hubl (Jinjava) is just a wraper around java. HubSpot might not expose it or tell you that you can… But, you can. And if you can’t… take the nuclear option
{% do mydictionary.put(key, value) %}
{# If you want to put all keys from another dict.... #}
{# You've already seen update.... #}
{% do mydictionary.putAll(otherDictionary) %}
{# If you want to iterate updating or override keys #}
{% for ... in ... %}
{% do mydictionary.put(key, transmorgifiedValue) %}
{% endfor %}
{# If you want to remove a key... #}
{% do mydictionary.remove(key) %}
This works for basically any more complex op you need dealing with any native object type… But, if you need more complex functions like trigonometric functions etc you’re SOL unless you want to do taylor series approximations in HubL… I use that as ana example becuase I’ve done it and it’s not fun! If you play around with this I’ll save you a headache.
You can’t do proxy dicts such as:
{% set proxyDict = {
"key": nameOfMacroFucntion
%}