Post Reply 
Splitting Lists on Prime G2 - Help Needed
03-10-2023, 10:24 AM (This post was last modified: 03-10-2023 09:06 PM by komes.)
Post: #8
RE: Splitting Lists on Prime G2 - Help Needed
Hi, Here is another option, a small program that puts on stack (in RPN mode) all elements from your list. But it does not work automatically. This is how to do it:

1. Run program with your list as an argument.
The elements will be displayed in Terminal.

2. Copy everything as it is with Shift-Copy.

3. Clear Terminal window with Backspace.

4. Go back to Home screen (in RPN mode!).

5. Paste what you have copied with Shift-Paste.

6. Press ENTER.

Quote:EXPORT RPSTK(LL)
BEGIN
LOCAL n;
FOR n FROM 1 TO SIZE(LL) DO
IF TYPE(LL)==2 THEN
PRINT(STRING(LL(n)+" "); //Must be space between quotation marks. Important!
ELSE
PRINT(LL(n)+" "); //Must be space between quotation marks. Important!
END;
END;
RETURN;
END;

It works for me, so maybe helps you too. Good luck.
A.Z.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Splitting Lists on Prime G2 - Help Needed - komes - 03-10-2023 10:24 AM



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