Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Fence vs. Postsby QM (Parson) |
on Jun 08, 2018 at 09:57 UTC ( [id://1216179]=note: print w/replies, xml ) | Need Help?? |
I often have a list where I need to do adjacent pairs.
which emits:
If you did this often, you might want a pairs_overlapping function. Or, going with a generic version:
a function that returns an arbitrary list of adjacent elements, with an arbitrary step size. As to the next bit, I think several good solutions have been shown by others. -QM
In Section
Seekers of Perl Wisdom
|
|