[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] How to get a subset of the keys of an associative array?
From: |
Eduardo Bustamante |
Subject: |
Re: [Help-bash] How to get a subset of the keys of an associative array? |
Date: |
Sat, 13 Aug 2016 19:36:30 +0000 |
The slice operation makes little sense for an associative array, since the
order of keys is not guaranteed. I'd suggest re-thinking whatever you're
trying to do with this fact in mind.
If you need to preserve insertion order, you'll need to use a helper simple
list to achieve that. You can then perform the slice operation on the
simple list.