searchif - check wether a substring is contained within a string
string1 string2 searchif -> bool
array1 array2 searchif -> bool
(Hello world!) (Hello) searchif -> true
[1 3 2 5 2] [3 2] searchif -> true
calls search and removes the substrings/-arrays generated
thereby. Neither string/array will be conserved (!),
bool contains success or failure.
string1/array1: The object where to search into.
string2/array2: The subobject to look for.
bool is true on success, otherwise false
Does not have optimal performance; search creates subobjects
which are not needed for serachif.
Hehl
April 15, 1999
/var/www/debian/nest/nest-simulator-2.20.0/lib/sli/misc_helpers.sli