On Thu, 24 Jun 2010, patko wrote:
It's about sorting a bunch of lists according to what's the first element of each list.
Ok, I just made you a patch for it.
The trick is to use a [#slice] to extract the information to sort about ; however the [#slice] needs to know the height of the grid, so you need a [#dim]. the [#unpack] and msgbox is only one way to do it in two steps : you can also do [# * (1 0)] [# + (0 1)] and there are a bunch of other equivalent ways.
Then, when you have a grid of size (n 1) and you need to get it to size (n), you'd do something like [#fold +] or [#fold put], and to undo it back to size (n 1), you'd do something like [#outer + (0)] or [#outer ignore (0)]. Note that the parens are essential in the latter case, unlike a typo I removed yesterday.
It's national holiday today (basically, same as your july 14th), and our law says that any work done on that day has to be paid triple rate. So I'm gonna charge you 3 times the amount I usually charge you. ;)
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801