logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

delete-lifo - (LIFO)

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

Name

delete-lifo - (LIFO)

Purpose

Delete LIFO list elements.

See Also

LIFO delete-lifoget-lifonew-lifopurge-liforead-liforewind-lifowrite-lifo See all documentation $DATE $VERSION GOLF(2gg)

Syntax

delete-lifo <list>

See Also