Post Reply 
Programming puzzles: processing lists!
04-24-2017, 09:32 PM
Post: #27
RE: Programming puzzles: processing lists!
(04-24-2017 05:03 PM)DavidM Wrote:  
(04-22-2017 11:50 AM)pier4r Wrote:  Side question: I am not able to save a list in a list, without using another variable.

I mean {1 2 3} {1 2 3} + returns {1 2 3 1 2 3}. What is the operation to return {1 2 3 {1 2 3} } ?

You essentially need to explode the first list, then combine all the elements with →LIST.

Actually, all you have to do is put that list inside a list:

{1 2 3 } {1 2 3} 1 ->LIST +

it's simpler, though most likely slower, as you are essentially creating 2 lists instead of 1.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming puzzles: processing lists! - Claudio L. - 04-24-2017 09:32 PM



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