list insert( list dest, int index, string src1, [, string src2, ...] )
insert constructs a list by inserting strings into a list at the specified position. Note that the first element in the list is index: 0. If the index is greater than the length of the specified list (for example, 999), then the strings append to the end of the list.
Returns the newly constructed list.
trustedusers={"jamie", "cory", "robyn"}; a=insert(trustedusers, 1, "leslie");
sets a to the list:
{"jamie", "leslie", "cory", "robyn"}
string join( list X [, string delimiter] )
join returns a string constructed by concatenating each element of list X. Each element of the string is separated by delimiter. The default delimiter is a space character.
trustedusers={"jamie", "cory", "robyn"}; print(join(trustedusers, "\n"));
Prints the following string:
jamie cory robyn
int length( list|string X )
length returns the number of elements in the specified list or the number of characters in the specified string.
trustedusers={"jamie", "cory", "robyn"}; print(length(trustedusers));
string lsubst( list X, string pattern, string replacement )
lsubst substitutes part of a string with another string throughout all or a specified part of a list X.
print(lsubst({"xxxonexxx","xxxonexxx"},"one","two")); #prints the following list #"{xxxtwoxxx,xxxtwoxxx}"
© 2021 One Identity LLC. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy