Add new functions (no implementation yet) and constants

This commit is contained in:
Sei Lisa 2023-07-15 11:05:28 +02:00
parent 82ea298e85
commit 152ede8cd0
3 changed files with 37 additions and 1 deletions

View file

@ -1426,6 +1426,14 @@ def llList2List(lst, start, end):
end = fi(end)
return InternalGetDeleteSubSequence(lst, start, end, isGet=True)
def llList2ListSlice(src, start, end, stride, slice_idx):
src = fl(src)
start = fi(start)
end = fi(end)
stride = fi(stride)
slice_idx = fi(slice_idx)
raise ELSLCantCompute # TODO: Implement llList2ListSlice
def llList2ListStrided(lst, start, end, stride):
lst = fl(lst)
start = fi(start)
@ -1531,6 +1539,14 @@ def llListFindList(lst, elems):
return i
return -1
def llListFindListStrided(src, test, start, end, stride):
src = fl(src)
test = fl(test)
start = fi(start)
end = fi(end)
stride = fi(stride)
raise ELSLCantCompute # TODO: Implement llListFindListStrided
def llListInsertList(lst, elems, pos):
lst = fl(lst)
elems = fl(elems)
@ -1635,6 +1651,13 @@ def llListSort(lst, stride, asc):
a = a.encode('utf-32-be') # pragma: no cover
return lst
def llListSortStrided(src, stride, idx, ascending):
src = fl(src)
stride = fi(stride)
idx = fi(idx)
ascending = fi(ascending)
raise ELSLCantCompute # FIXME: Implement llListSortStrided
def llListStatistics(op, lst):
op = fi(op)
lst = fl(lst)