List Manipulation
|
05-19-2023, 11:09 PM
(This post was last modified: 05-19-2023 11:10 PM by Didier Lachieze.)
Post: #5
|
|||
|
|||
RE: List Manipulation
My comments below are related to Home and PPL, not to CAS which may have other ways to manipulate lists.
(05-19-2023 09:25 PM)matalog Wrote: Is there a way to split a list into 2 or to say that A{}:= B{}(32-64)? L1:=L2({32,64}) See page 552 of the manual: "List references Suppose L1:={5, "abcde", {1,2,3,4,5}, 11}. L1(1) returns 5 and L1(2) returns "abcde". L1(2, 4) returns 100 (the ASCII code for d) and L1(2,4,1) returns "d". L1({2,4}) returns {"abcde", {1,2,3,4,5},11}, extracting a sublist of all the elements from 2 through 4." One additional thing for list references is about the zero index value: L1(0) returns the last element of the list L1(0):=n adds n as a new element at the end of the list Quote:Short of that is there a way to tail(32)? To remove 32 entries from the beginning of a list? SUPPRESS(L1,1,32) Quote:Are there any good List manipulation guides or tutorials? Nothing I would know, but I may have missed them. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
List Manipulation - matalog - 05-19-2023, 09:25 PM
RE: List Manipulation - roadrunner - 05-19-2023, 10:50 PM
RE: List Manipulation - gehakte_bits - 05-19-2023, 11:03 PM
RE: List Manipulation - gehakte_bits - 05-19-2023, 11:06 PM
RE: List Manipulation - Didier Lachieze - 05-19-2023 11:09 PM
RE: List Manipulation - StephenG1CMZ - 05-20-2023, 07:10 AM
RE: List Manipulation - matalog - 05-21-2023, 11:57 PM
RE: List Manipulation - matalog - 08-24-2023, 12:39 PM
|
User(s) browsing this thread: 1 Guest(s)