Re: general function for sorting a matrix

2007-09-10 Thread Xah Lee
hi, just a quick reply. You are right, the python version i have is really terrible. I'll look at your solution and possibly reply later. Thanks for your code. It's great! Xah On Aug 29, 9:40 am, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Wed, 29 Aug 2007 08:47:27

general function for sorting a matrix

2007-08-29 Thread Xah Lee
directives, it parses the directives then generate the complete sort code, then eval it in one shot. This is more of a pure functional approach. I thought it is of interest. The Perl and Python solutions are at: General Function For Matrix Sorting http://xahlee.org/perl-python/sort_matrix.html It would

Re: general function for sorting a matrix

2007-08-29 Thread Marc 'BlackJack' Rintsch
On Wed, 29 Aug 2007 08:47:27 -0700, Xah Lee wrote: While reviewing this code, there's something interesting of note. Namely, in my perl solution, the approach is drastically different than the python version. Instead of sorting by looping thru the sorting directives, it parses the

Re: general function for sorting a matrix

2007-08-29 Thread Stefan Behnel
Xah Lee wrote: [undermotivated blah stripped] don't feed the troll. Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: general function for sorting a matrix

2007-08-29 Thread Neil Cerutti
On 2007-08-29, Xah Lee [EMAIL PROTECTED] wrote: A couple years ago, i posted a programing problem, about writing a function that will sort a arbitrarily dimentioned matrix in any possible way to sort it. Such a function, is rather typical in functional programing languages. I wrote a