On 3/15/21 9:03 PM, Léa Gris wrote:

zsh also provide a nice feature to iterate both keys and values in a single loop:

for key value in "${(kv)assoc_array}"; do
     printf '%s -> %s\n' "$key" "$value"
done

I don't have any current interest in implementing the zsh mini-language for
expansion modifier flags. If someone wanted to take a run at it, I'd be
interested in seeing the results.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to