Post Reply 
hp 28s - creating nested lists
02-16-2015, 04:33 PM (This post was last modified: 02-16-2015 04:41 PM by mbrethen.)
Post: #1
hp 28s - creating nested lists
I need a program that will initialize a nested list filled with a value. For example:

Stack:
0
{3 4}

Output: {{0 0 0 0} {0 0 0 0} {0 0 0 0}}

Stack:
1
{2 3 4}

Output: {{{1 1 1 1} {1 1 1 1} {1 1 1 1}} {{1 1 1 1} {1 1 1 1} {1 1 1 1}}}


Is this possible? I've thought about it, but can't figure out how to accommodate the levels of nesting (i.e. multiple For/Next loops).
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
hp 28s - creating nested lists - mbrethen - 02-16-2015 04:33 PM



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