Post Reply 
Programming puzzles: processing lists!
01-28-2019, 10:16 PM (This post was last modified: 01-28-2019 10:29 PM by John Keith.)
Post: #260
RE: Programming puzzles: processing lists!
(01-28-2019 08:43 PM)Thomas Klemm Wrote:  Here's a program to transpose a list for the HP-48GX:
Code:
« OBJ→ → n
  « n
    « n →LIST
    » DOLIST
  »
»

Example:

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

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

Nice elegant program, Thomas.
Shouldn't the result be {{ 1 3 } { 2 4 }{ 3 5 }} ?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming puzzles: processing lists! - John Keith - 01-28-2019 10:16 PM



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