in reply to extracting a list element

Oh, List::UtilsBy::extract_by {...} was not successful.

SSCCE, please.


🦛

Replies are listed 'Best First'.
Re^2: extracting a list element
by LanX (Saint) on Jan 05, 2024 at 19:27 UTC
    I looked into List::UtilsBy#extract_by and it's irritating iterating over the array values aliased to $_ , and only one dimension, i.e. non diving.

    There is no information of the index passed into the lambda.

    Hence one would need to define and increment it on its own, which seems too cumbersome to me.

    Or do you have a better idea?

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery

      Without an SSCCE (ideally in the form of a test) it's just guesswork as to what geoffleach actually wants to achieve. I'm quite content to wait until that arrives.


      🦛