Note

The wasCircularListForward function takes as input a circular list and permutes all the elements forward. An example call is the following:

list a = [ 1, 2, 3, 4, 5 ];
a = wasCircularListForward(a);

after which the contents of the list a will be:

5 1 2 3 4

Code

///////////////////////////////////////////////////////////////////////////
//  Copyright (C) Wizardry and Steamworks 2014 - License: GNU GPLv3      //
///////////////////////////////////////////////////////////////////////////
list wasCircularListForward(list input) {
    string in = llList2String(input, -1);
    input = llDeleteSubList(input, -1, -1);
    return llListInsertList(input, [in], 0);
}

secondlife/circular_double_linked_lists/list/forward.txt ยท Last modified: 2022/11/24 07:46 by 127.0.0.1

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


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