On Dec 13, 2005, at 5:06, Joshua Isom wrote:
... This brings me to a request, a sort opcode. The method I think would be best would be similar to perl's `sort {$a <=> $b} @array` syntax.

$ perldoc src/classes/fixedpmcarray.pmc

       "METHOD void sort(PMC* cmp_func)"
           Sort this array, optionally using the provided cmp_func

The sort is also inherited by ResizableArrayPMC.

$ grep -w sort t/pmc/*array*.t
...

HTH
leo

Reply via email to