Collection functions
π€ AI-Generated Content
This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.
pyvider.components.functions.collection_functions
¶
Collection manipulation functions for arrays and objects.
Classes¶
Functions¶
lookup
¶
Lookup a key in a map and return its value, or a default if the key doesn't exist.
Using *defaults allows us to distinguish between: - lookup(map, key) - no default provided, should error if key missing - lookup(map, key, None) - default is None - lookup(map, key, False) - default is False - lookup(map, key, 0) - default is 0