Search, extract, modify, and sort list entries.
What do you want to do?
integer llListFindList(list src, list test)Returns the integer index of the first instance of list test within the list src (returns -1 if not found).list llList2List(list src, integer start_index, integer end_index)Returns a new list containing the subset of entries from src within the inclusive range specified by the start and end indices. Negative indices count backward from the end.list llListReplaceList(list dest, list src, integer start_index, integer end_index)Returns a copy of the list dest with the inclusive range from start to end removed, and the elements of src inserted in its place at start.list llListSort(list src, integer stride, integer ascending)Returns a copy of the list src, sorted into blocks of stride in ascending order (if ascending is TRUE) or descending order (if FALSE). Only works if the first entry of each block shares the same datatype.Reference
23 topic entries
list llDeleteSubList(list src, integer start_index, integer end_index)Returns a copy of the list src with the slice from start_index to end_index (inclusive) removed. Negative indices count backward from the end of the list. If start_index is greater than end_index, the deletion excludes the specified range.functioninteger llGetListEntryType(list src, integer index)Returns an integer representing the variable type (TYPE_*) of the list entry at index in the list src.functioninteger llGetListLength(list src)Returns an integer representing the total number of elements in the list src.functionstring llList2CSV(list src)Returns a string of comma-separated values taken in order from the list src.functionfloat llList2Float(list src, integer index)Returns the float value at index in the list src. Returns 0.0 if the index is out of bounds or if the value cannot be type-cast.functioninteger llList2Integer(list src, integer index)Returns the integer value at index in the list src. Returns 0 if the index is out of bounds or if the value cannot be type-cast.functionstring llList2Json(string type, list values)Converts the list values into a JSON string of the specified type (either aJSON_ARRAYor aJSON_OBJECT). ReturnsJSON_INVALIDif an error is encountered.functionkey llList2Key(list src, integer index)Returns the key (UUID) value at index in the list src. Returns a null string/key if the index is out of bounds or if the value cannot be type-cast.functionlist llList2List(list src, integer start_index, integer end_index)Returns a new list containing the subset of entries from src within the inclusive range specified by the start and end indices. Negative indices count backward from the end.functionlist llList2ListSlice(list src, integer start_index, integer end_index, integer stride, integer slice_index)Returns a list containing the slice_index'th element of every stride within the inclusive range from start to end in the strided list src. Stride must be a positive integer.functionlist llList2ListStrided(list src, integer start_index, integer end_index, integer stride)Returns a new list containing the first element of every stride in the strided list src within the inclusive range from start to end.functionrotation llList2Rot(list src, integer index)Returns the rotation value at index in the list src. ReturnsZERO_ROTATIONif the index is out of bounds or if the value cannot be type-cast.functionstring llList2String(list src, integer index)Returns the string value at index in the list src. Returns an empty string if the index is out of bounds.functionvector llList2Vector(list src, integer index)Returns the vector value at index in the list src. ReturnsZERO_VECTORif the index is out of bounds or if the value cannot be type-cast.functioninteger llListFindList(list src, list test)Returns the integer index of the first instance of list test within the list src (returns -1 if not found).functioninteger llListFindListNext(list src, list test, integer instance)Returns the integer index of the specified instance of list test within the list src (returns -1 if not found).functioninteger llListFindStrided(list src, list test, integer start_index, integer end_index, integer stride)Returns the integer index of the first instance of list test in the strided list src within the range from start to end (stepping through by stride). Returns -1 if not found.functionlist llListInsertList(list dest, list src, integer start)Returns a new list containing all elements of dest with the elements of src inserted starting at index start. Does not modify dest itself.functionlist llListRandomize(list src, integer stride)Returns a randomized copy of the list src by blocks of size stride. If the list length is not perfectly divisible by stride, no randomization occurs.functionlist llListReplaceList(list dest, list src, integer start_index, integer end_index)Returns a copy of the list dest with the inclusive range from start to end removed, and the elements of src inserted in its place at start.functionlist llListSort(list src, integer stride, integer ascending)Returns a copy of the list src, sorted into blocks of stride in ascending order (if ascending isTRUE) or descending order (ifFALSE). Only works if the first entry of each block shares the same datatype.functionlist llListSortStrided(list src, integer stride, integer stride_index, integer ascending)Returns a copy of the list src sorted into blocks of stride by the element at stride_index in each block. Sorted in ascending order (if ascending isTRUE) or descending order (ifFALSE).functionfloat llListStatistics(integer operation, list src)Returns the numeric result of the statistical aggregate function operation (a LIST_STAT_* constant) on the numeric list src.function
No matching entries. Try a different term or filter.