utility tool for creating arrays and map-like objects