Skip

C10 - initial

skip (Sifts)
TypeCorrade progressive sift
Siftskip
Parametersinteger
DescriptionThe skip sift will remove a supplied number of elements in a list from the start of the list.
Last ChangesNone

The skip sift will remove a supplied number of elements in a list from the start of the list.

Arguments

Position Type Description Example
0 integer The number of items to remove from the list. 5

Example

The following sift when added to a command will remove the first 5 items and then retrieve the next 2 items from the value of the data key:

    "sift", wasListToCSV([
        "skip", 5,
        "take", 2
    ]),

Effect on Returned Data

Given the input

data=a,b,c,d,e,f,h,g,h,i,j,k

the expected output is:

data=f,h

Notes

  • This is $\lfunc{CDR}$ in theory.

secondlife/scripted_agents/corrade/api/sifts/skip.txt ยท Last modified: 2020/09/04 06:46 (external edit)

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the copyright, license, warranty and privacy terms for the usage of this website please see the license, privacy, copyright and the plagiarism pages.