[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] GAWK feature suggestions
From: |
Andrew J. Schorr |
Subject: |
Re: [bug-gawk] GAWK feature suggestions |
Date: |
Wed, 28 Aug 2019 11:17:04 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Aug 28, 2019 at 06:56:57AM -0700, david kerns wrote:
> for (i in a) delete a[i];
FYI, you can simply say "delete a" instead of
iterating over the array elements.
https://www.gnu.org/software/gawk/manual/html_node/Delete.html
All the elements of an array may be deleted with a single statement by
leaving off the subscript in the delete statement, as follows:
delete array
Regards,
Andy