Programming puzzles: processing lists!
|
01-28-2019, 08:16 PM
(This post was last modified: 01-28-2019 08:17 PM by John Keith.)
Post: #256
|
|||
|
|||
RE: Programming puzzles: processing lists!
(01-28-2019 07:37 PM)pier4r Wrote: List transpose? Could you elaborate more with a couple of use cases and/or examples? Matrix transpose basically swaps rows for columns. Code:
By "list transpose" I mean the analogous operation for a list of lists: Code:
You can see that Code:
does the same thing as the built-in command TRAN. Though as David pointed out my code in the earlier post was unnecessarily long, I think the ability to transpose lists like one would matrices is generally useful. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 6 Guest(s)