I like that way of slicing it as well, but I think the name 'minima' fits it less well than it fits my way of slicing it. It is nice that yours only requires a single routine rather than 4 flavors. (I also like that mine uses a simpler key-generating function.)
I'd call it "firsts" but I was already told that would be confusing since there is already List::Util::first. Perhaps "leaders"?
- tye
In reply to Re^2: Efficiently finding values of an extremity (WTDI)
by tye
in thread Efficiently finding values of an extremity
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |