in reply to Re^3: Prototype like sort()?
in thread Prototype like sort()?
Actually, as long as we are only talking about two variants, it's more sensical to just define a second rankby .
IMHO a module with many sort like functions would profit from a specialized by .
> But it's too "magical" for my taste.
In context of my DSL mediators I've already put some efforts into investigating possible pitfalls and found very good solutions.
Please note that most other solutions come with ugly edge cases which are excluded here.
There is a performance penalty though ...
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery
|Replies are listed 'Best First'.|
Re^5: Prototype like sort()?
by perlancar (Hermit) on Feb 05, 2018 at 10:15 UTC
by LanX (Sage) on Feb 05, 2018 at 10:18 UTC
In Section Seekers of Perl Wisdom