develooper Front page | perl.perl5.porters | Postings from October 2021

now in blead: n-at-a-time foreach

Thread Next
From:
Ricardo Signes
Date:
October 15, 2021 14:17
Subject:
now in blead: n-at-a-time foreach
Message ID:
c436eb14-b016-42cf-9d36-5c0a0ba0e4f9@beta.fastmail.com
Porters,

I have merged #18925 <https://github.com/Perl/perl5/pull/18925>, which adds n-at-a-time iteration to perl.  Thanks to Damian Conway for the original suggestion of the syntax we used, Nicholas Clark for the implementation, and Tony Cook and Matthew Horsfall and others for code review.

for my ($k, $v) (%hash) {
  say "The value for $k is $v";
}

Enjoy!

-- 
rjbs
Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About