Post Reply 
New [Set] menu
12-19-2018, 02:16 AM
Post: #4
RE: New [Set] menu
I notice that in the LIST menu, it has three set commands, but the list type is not always equal to a set

test

index:=1:; E_ := [ "H", "E", "L", "L", "O" ]:;
find( "L", E_ ) [enter]
[3,4] // "L" is in two positions
index(E_,"L") [enter]
3

F_ := set[ "H", "E", "L", "L", "O" ] [enter] set[ "H", "E", "L", "O" ]
find( "L", F_ ) [enter]
[3] // "L" is in one positions
index(F_,"L") [enter]
3

E_ == F_ [enter] false

also diference cmd does not work on a set
DIFFERENCE(set["b","a","c","a"],set["a","d"]) [enter]
{"b","c","d"}

set[ "b", "a", "c", "a" ] minus set[ "a", "d" ] [↵] set["b","c"]
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
New [Set] menu - compsystems - 12-17-2018, 03:13 AM
RE: New [Set] menu - Eddie W. Shore - 12-18-2018, 12:48 PM
RE: New [Set] menu - Carlos295pz - 12-18-2018, 09:33 PM
RE: New [Set] menu - compsystems - 12-19-2018 02:16 AM



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