OpenSpace3D libs
OpenSpace 3D libraries for plugITs and OS3D developer
|
Functions | |
lcat (p, q) | |
Concat two list to one. | |
splitList (l, pos) | |
Split a list in two list at given position. | |
moveListElement (l, pos, to) | |
move an elements in a list | |
quicksort (l, f) | |
Sort a list. | |
quicksortByPos (l, pos, f) | |
Sort a list by position. | |
quicksortList (l, f) | |
Sort a string list. | |
quicksort3 (l, f) | |
Sort a string list. | |
sortlist (l, f) | |
Sort a list. | |
revertlist (list) | |
Reverse a list. | |
isStringInList (l, string) | |
Test if a string exist in a list. | |
isStringInListi (l, string) | |
Test if a string exist in a list case insensitivity. | |
isStringInListiPos (l, string, pos, length) | |
Test if a string exist in a list case insensitivity. | |
addUniqueStr (l, str) | |
Add a string element as unique. | |
addUniqueStri (l, str) | |
Add a string element as unique, case insensitivity. | |
getStringPosInList (l, string) | |
get a string position in a list | |
getStringPosInListi (l, string) | |
get a string position in a list case insensitivity | |
isFirstWordInList (l, string) | |
Test if a string exist in a list as the first word of the string. | |
isFirstWordInListi (l, string) | |
Test if a string exist in a list as the first word of the string case insensitivity. | |
isFirstStringInList (l, string) | |
Test if the first string of a list match to a word. | |
isT1InList (l, val) | |
Test if the first tuple value in list is present. | |
isT2InList (l, val) | |
Test if the second tuple value in list is present. | |
listLowercase (l) | |
Transform a string list to lowercase. | |
apply_on_list (l, f, x) | |
apply a function to a list | |
rev_apply_on_list (l, f, x) | |
apply a function to a list reserved | |
search_in_list (l, f, x) | |
Search an element in a list. | |
remove_from_list (l, p) | |
Remove an element in a list. | |
remove_string_from_list (l, elt) | |
Remove an string in a list. | |
remove_idx_from_list (l, idx) | |
Remove an indexed element in a list. | |
remove_sid_from_list (l, sid) | |
Remove a string indexed element in a list. | |
remove_sid_from_listi (l, sid) | |
Remove a string indexed element in a list case incensivity. | |
rename_sid_from_list (l, sid, nid) | |
Rename a string indexed element in a list. | |
List tools
lcat | ( | p | , |
q | |||
) |
Concat two list to one.
Prototype: fun [[u0 r1] [u0 r1]] [u0 r1]
[u0 | r1] : first list to concat |
[u0 | r1] : second list to concat |
splitList | ( | l | , |
pos | |||
) |
Split a list in two list at given position.
Prototype: fun [[u0 r1] I] [[u0 r1] [u0 r1]]
[u0 | r1] : list to split |
I | : position (start at 0), use a negative value for a position from the list end |
moveListElement | ( | l | , |
pos | , | ||
to | |||
) |
move an elements in a list
Prototype: fun [[u0 r1] I I] [u0 r1]
[u0 | r1] : list to split |
I | : position to get the element |
I | : position to move the element |
quicksort | ( | l | , |
f | |||
) |
Sort a list.
Prototype: fun [[u0 r1] fun [u0 u0] I] [u0 r1]
[u0 | r1] : list to sort |
fun | [u0 u0] I : function for sort test (suppDoublon for example) |
quicksortByPos | ( | l | , |
pos | , | ||
f | |||
) |
Sort a list by position.
Prototype: fun [[[u0 r1] r1] I fun [u0 u0] I] [[u0 r1] r1]
[u0 | r1] : list to sort |
fun | [u0 u0] I : function for sort test (suppDoublon for example) |
quicksortList | ( | l | , |
f | |||
) |
Sort a string list.
Prototype: fun [[[S r1] r1] fun [S S] I] [S r1]
[[S | r1] r1] : list to sort |
fun | [S S] I : function for sort test (suppDoublon for example) |
quicksort3 | ( | l | , |
f | |||
) |
Sort a string list.
Prototype: fun [[[[S u0] r1] r1]] fun [S S] I] [[[S u0] r1] r1]]
[S | r1] : list to sort |
fun | [S S] I : function for sort test (suppDoublon for example) |
sortlist | ( | l | , |
f | |||
) |
Sort a list.
Prototype: fun [[u0 r1] fun [u0 u0] I] [u0 r1]
[u0 | r1] : list to sort |
fun | [u0 u0] I : function for sort test (suppDoublon for example) |
revertlist | ( | list | ) |
Reverse a list.
Prototype: fun [[u0 r1]] I
[u0 | r1] : list to revert |
isStringInList | ( | l | , |
string | |||
) |
Test if a string exist in a list.
Prototype: fun [[S r1] S] I
[S | r1] : list |
S | : string to search |
isStringInListi | ( | l | , |
string | |||
) |
Test if a string exist in a list case insensitivity.
Prototype: fun [[S r1] S] I
[S | r1] : list |
S | : string to search |
isStringInListiPos | ( | l | , |
string | , | ||
pos | , | ||
length | |||
) |
Test if a string exist in a list case insensitivity.
Prototype: fun [[S r1] S I I] I
[S | r1] : list |
S | : string to search |
I | : position |
I | : length |
addUniqueStr | ( | l | , |
str | |||
) |
Add a string element as unique.
Prototype: fun [[S r1] S] [S r1]
[S | r1] : list |
S | : unique element |
addUniqueStri | ( | l | , |
str | |||
) |
Add a string element as unique, case insensitivity.
Prototype: fun [[S r1] S] [S r1]
[S | r1] : list |
S | : unique element |
getStringPosInList | ( | l | , |
string | |||
) |
get a string position in a list
Prototype: fun [[S r1] S] I
[S | r1] : list |
S | : string to search |
getStringPosInListi | ( | l | , |
string | |||
) |
get a string position in a list case insensitivity
Prototype: fun [[S r1] S] I
[S | r1] : list |
S | : string to search |
isFirstWordInList | ( | l | , |
string | |||
) |
Test if a string exist in a list as the first word of the string.
Prototype: fun [[S r1] S] I
[S | r1] : list |
S | : string to search |
isFirstWordInListi | ( | l | , |
string | |||
) |
Test if a string exist in a list as the first word of the string case insensitivity.
Prototype: fun [[S r1] S] I
[S | r1] : list |
S | : string to search |
isFirstStringInList | ( | l | , |
string | |||
) |
Test if the first string of a list match to a word.
Prototype: fun [[[S r1] r1] S] I
[[S | r1] r1] : list |
S | : string to compare |
isT1InList | ( | l | , |
val | |||
) |
Test if the first tuple value in list is present.
Prototype: fun [[[u0 u1] r1] u0] I
[[I | u0] r1] : list |
u0 | : value to compare |
isT2InList | ( | l | , |
val | |||
) |
Test if the second tuple value in list is present.
Prototype: fun [[[u0 u1] r1] u1] I
[[I | u0] r1] : list |
u1 | : value to compare |
listLowercase | ( | l | ) |
Transform a string list to lowercase.
Prototype: fun [[S r1]] [S r1]
[S | r1] : the string list |
apply_on_list | ( | l | , |
f | , | ||
x | |||
) |
apply a function to a list
Prototype: fun [[u0 r1] fun [u0 u1] I u1] I
[u0 | r1] : the list |
fun | [u0 u1] I : the function to call for each list element |
u1 | : a user parameter |
rev_apply_on_list | ( | l | , |
f | , | ||
x | |||
) |
apply a function to a list reserved
Prototype: fun [[u0 r1] fun [u0 u1] u0 u1] [u0 r1]
[u0 | r1] : the list |
fun | [u0 u1] u0 : the function to call for each list element |
u1 | : a user parameter |
search_in_list | ( | l | , |
f | , | ||
x | |||
) |
Search an element in a list.
Prototype: fun [[u0 r1] fun [u0 u1] I u1] u0
[u0 | r1] : the list |
fun | [u0 u1] I : the function to call for each list element to compare |
u1 | : a user parameter |
remove_from_list | ( | l | , |
p | |||
) |
Remove an element in a list.
Prototype: fun [[u0 r1] u0] [u0 r1]
[u0 | r1] : the list |
u0 | : the list element to remove |
remove_string_from_list | ( | l | , |
elt | |||
) |
Remove an string in a list.
Prototype: fun [[S r1] S] [S r1]
[S | r1] : the list |
S | : the list element to remove |
remove_idx_from_list | ( | l | , |
idx | |||
) |
Remove an indexed element in a list.
Prototype: fun [[[u0 u1] r1] u0] [[u0 u1] r1]
[[u0 | u1] r1] : the list |
u0 | : the index to remove |
remove_sid_from_list | ( | l | , |
sid | |||
) |
Remove a string indexed element in a list.
Prototype: fun [[[S u0] r1] S] [[S u0] r1]
[[S | u0] r1] : the list |
S | : the index to remove |
remove_sid_from_listi | ( | l | , |
sid | |||
) |
Remove a string indexed element in a list case incensivity.
Prototype: fun [[[S u0] r1] S] [[S u0] r1]
[[S | u0] r1] : the list |
S | : the index to remove |
rename_sid_from_list | ( | l | , |
sid | , | ||
nid | |||
) |
Rename a string indexed element in a list.
Prototype: fun [[[S u0] r1] S S] [[S u0] r1]
[[S | u0] r1] : the list |
S | : the index to rename |
S | : the new index name |