Post Reply 
all about strings
10-22-2018, 09:46 PM (This post was last modified: 10-23-2018 02:53 PM by compsystems.)
Post: #3
RE: all about strings
SUPPRESS & INSERT should be included, operate on strings, although they can operate in other objects, should not be excluded.

suppress
Returns list or string without the element of index n;
L1:=suppress(L1,n) or L1.suppress(n).
suppress(Vect||Str,Intg(n))

although it is also necessary to clarify that it is affected by the reserved variable Index

index:=1:; suppress("-x^3",1) returns "Done","x^3"
index:=0:; suppress("-x^3",1) returns "Done","-^3"

index:=0; [enter]
s1:="-x^3"; s1. suppress(0); s1.suppress(0) => "[] index start 0","-x^3","x^3","^3" // ok

bug
up up copy
equal(s1,"-x^3"), s1.(suppress(0)), s1.(suppress(0)) =>
equal("^3","-x^3"),"3",""
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
all about strings - Giancarlo - 10-22-2018, 07:06 PM
RE: all about strings - John Keith - 10-22-2018, 09:02 PM
RE: all about strings - compsystems - 10-22-2018 09:46 PM
RE: all about strings - Giancarlo - 10-24-2018, 08:17 PM
RE: all about strings - sasa - 10-24-2018, 08:31 PM
RE: all about strings - rprosperi - 10-24-2018, 10:09 PM
RE: all about strings - Joe Horn - 10-25-2018, 02:09 AM
RE: all about strings - rprosperi - 10-25-2018, 03:07 AM
RE: all about strings - sasa - 10-25-2018, 05:04 AM
RE: all about strings - dae - 08-23-2019, 03:22 PM
RE: all about strings - Carlos295pz - 08-23-2019, 07:28 PM



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