<div><br></div>thinking (out loud) about lazy sort utilities.<div><br></div><div>Given an invocation something like</div><div><br></div><div>           makelazysortedarray ( my @Sorted, @Unsorted); # presume "cmp" for comparison function</div>
<div>      </div><div>which would work behind the scenes with a (\@@) protoype, and work by either tying @{$_[0]} or blessing $_[0] into an overloaded class (which in turn ties, so there's no advantage there)</div><div>
<br></div><div>when the sort is complete, @{$_[0]} could be untied with "untie" and then get the complete remaining list assigned to it, or for an overload situation, </div><div><br></div><div>     $_[0] = [ @CompleteSortedList ]</div>
<div><br></div><div>would also work.</div><div><br></div><div>Am I right?</div><div><br></div><div><div><br></div>-- <br>"I am waiting for the war to make the world safe for anarchy" -- Lawrence Ferlinghetti<br>

</div>