find and index functional cmd
Modérateur : xcasadmin
-
- Messages : 562
- Inscription : sam. févr. 04, 2017 11:34 pm
- Localisation : Colombia
- Contact :
find and index functional cmd
Hello BP, the find and index functional commands are not working
D_ := set[ "H", "E", "L", "L", "O"];
find("L",D); find("O",D_);
E_ := [ "H", "E", "L", "L", "O" ];
find("L",E_); find("O",D_);
index("L",E_);
D_ := set[ "H", "E", "L", "L", "O"];
find("L",D); find("O",D_);
E_ := [ "H", "E", "L", "L", "O" ];
find("L",E_); find("O",D_);
index("L",E_);
Re: find and index functional cmd
What do you think is wrong?
-
- Messages : 562
- Inscription : sam. févr. 04, 2017 11:34 pm
- Localisation : Colombia
- Contact :
Re: find and index functional cmd
a list of numbers or symbols, FIND CMD if it returns a list of the positions of an object to be searched, but a list of strings, FIND CMD returns an error
G_ := [ H,E,L,L,O]
find( L, G_ ) [↵] [2,3]
E_ := [ "H", "E", "L", "L", "O" ]
find( "L", E_ ) [↵] " Error: Bad Argument Value" => [2,3]
G_ := [ H,E,L,L,O]
find( L, G_ ) [↵] [2,3]
E_ := [ "H", "E", "L", "L", "O" ]
find( "L", E_ ) [↵] " Error: Bad Argument Value" => [2,3]
Re: find and index functional cmd
But that's what I get: [2,3]
-
- Messages : 562
- Inscription : sam. févr. 04, 2017 11:34 pm
- Localisation : Colombia
- Contact :
Re: find and index functional cmd
in the PC version did not work, reset cache works in the online version,
but the result of the third instruction is not displayed, that is, the output of index(E_,"L"); is not shown , Is this a bug?
test
E_ := [ "H", "E", "L", "L", "O" ]:;find( "L", E_ );index(E_,"L");
but the result of the third instruction is not displayed, that is, the output of index(E_,"L"); is not shown , Is this a bug?
test
E_ := [ "H", "E", "L", "L", "O" ]:;find( "L", E_ );index(E_,"L");
-
- Messages : 562
- Inscription : sam. févr. 04, 2017 11:34 pm
- Localisation : Colombia
- Contact :
Re: find and index functional cmd
index("abracadabrant","c") [↵] 4 // PC version
index("abracadabrant","c") [↵] "Error" // Online version
index("abracadabrant","c") [↵] "Error" // Online version
-
- Messages : 562
- Inscription : sam. févr. 04, 2017 11:34 pm
- Localisation : Colombia
- Contact :
Re: find and index functional cmd
Anoter problem
find("ab","abracadabrant") [↵] []
find("ab","abracadabrant") [↵] []