http://qs321.pair.com?node_id=644080


in reply to Re^2: How to swap rows with columns?
in thread How to swap rows with columns?

Now that's very neat! BrowserUk++

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^4: How to swap rows with columns?
by BrowserUk (Patriarch) on Oct 10, 2007 at 22:42 UTC

    Not so neat after all. It relies on the fact that your data had the biggest sub-array last. Move it to any other position and it fails. You still need max() for a proper solution.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.