Post Reply 
Let's vote for suggestions and bugs
12-14-2018, 02:11 AM
Post: #80
RE: Let's vote for suggestions and bugs
Index acts as a system variable and as a functional command,

For functional command:
Index() returns the first position of an object in a list, a string or a set, if it does not find the object returns an error message.

index(List/String/Set,Object)

LIST:
index:=0:; index([9,8,-1,8,9,8,7],8) [↵] returns 1 // ok
index:=1:; index([9,8,-1,8,9,8,7],8) [↵] returns 2 // ok

SET:
index:=0:; F_ := set[ H_,E_,L_,L_,O_];
F_ => set[ H_,E_,L_,O_]; // the multiplicity of L_ is eliminated // ok
index(F_,O_) [↵] returns 3 // ok
index(F_,L_) [↵] returns 2 // ok

STRING
index:=0:; index("abracadabrant","c") [↵] returns -1 (Bug)// GIAC => 4
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Let's vote for suggestions and bugs - compsystems - 12-14-2018 02:11 AM
BREAK still reboot the calc - Oulan - 07-21-2019, 09:12 AM



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