I've seen a number of posts from pythonistas lately where they have struggled to mentally map python lists to bash arrays e.g.
LIST_OF_ENVIRONMENTS=[dev, prod, test...]
We could add some helper functions to meet them in the middle e.g.
readlist dev, prod, test # builds ${LIST[@]}, similar to readarray/mapfile defaulting to ${MAPFILE[@]}
readlist -n mylist dev, prod, test # builds ${mylist[@]}
I've seen a number of posts from pythonistas lately where they have struggled to mentally map python lists to bash arrays e.g.
We could add some helper functions to meet them in the middle e.g.