Post Reply 
Programming puzzles: processing lists!
01-28-2019, 07:10 PM
Post: #254
RE: Programming puzzles: processing lists!
(01-27-2019 07:54 PM)DavidM Wrote:  
(01-27-2019 07:18 PM)John Keith Wrote:  
Code:

\<< DUP LXIL SWAP SIZE LDIST LPOPR NIP
\>>

Well if you only need the last column (and you're going to allow external libraries Smile), here's another option:
Code:
« DUP LCLLT SWAP SIZE LLAST »

Yes, shorter and simpler. I posted my code because I use
Code:

\<< DUP LXIL SWAP SIZE LDIST 
\>>
as a list transpose. In fact,
Code:

\<< AXL DUP LXIL SWAP SIZE LDIST AXL
\>>
is faster than the built-in TRAN for matrices.
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 07:10 PM



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