Post Reply 
Programming puzzles: processing lists!
01-28-2019, 08:43 PM (This post was last modified: 01-28-2019 11:32 PM by Thomas Klemm.)
Post: #258
RE: Programming puzzles: processing lists!
(01-28-2019 08:16 PM)John Keith Wrote:  I think the ability to transpose lists like one would matrices is generally useful.

Here's a program to transpose a list for the HP-48GX:
Code:
« OBJ→ → n
  « n
    « n →LIST
    » DOLIST
  »
»

Example:

{ { 1 2 3 } { 4 5 6 } }

{ { 1 4 } { 2 5 } { 3 6 } }

Cheers
Thomas

PS: That's how the Python program works.

Edit: Fixed typo that John Keith spotted in post #260.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming puzzles: processing lists! - Thomas Klemm - 01-28-2019 08:43 PM



User(s) browsing this thread: 4 Guest(s)