Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Look up a set of keys applying a function when a key is missing
ResourceFunction["LookupKeys"][assoc,keys,func] looks up a set of keys, calling func[key] if a key is missing from assoc. |
Ask for a key:
In[1]:= |
Out[1]= |
If a key is missing:
In[2]:= |
Out[2]= |
Get some data when a key is missing:
In[3]:= |
Out[3]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License