GOLF(2gg)

NAME
delete-lifo - (LIFO)

PURPOSE
Delete LIFO list elements.

SYNTAX

        delete-lifo <list>

DESCRIPTION
delete-lifo will delete the most recently added elements to the LIFO <list> up to the last one read, including. <list> was created by new-lifo.

Right after rewind-lifo, no element was read yet, and delete-lifo will have no effect. Note that write-lifo also performs an implicit rewind-lifo.

After any read-lifo, delete-lifo wil delete all elements up to the element read, including that element.

EXAMPLES

        new-lifo mylist

        // Add data to the list
        write-lifo mylist key "key1" value "value1"
        write-lifo mylist key "some2" value "other2"

        // Get first data from the list, it will be "some2" key
        read-lifo mylist key k value v

        // Delete first element from the list, so list will have only "key1" key
        delete-lifo mylist

SEE ALSO
 LIFO

delete-lifo get-lifo new-lifo purge-lifo read-lifo rewind-lifo write-lifo See all documentation