Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

Fwdlist

View on GitLab

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

Forward list implementation

Copyright (c) 2024 Dmitry Scherbakov. All rights reserved.

Methods

Name Purpose
ListInit Initialize the forward list
ListClean Remove all elements from the list
ListSize Calculate the forward list size
ListEmpty Check if list is empty
ListDestroy Destroy the forward list
ListRemoveOne Remove first occurrence of the value in forward list (if one exists)
ListRemoveAll Remove all occurrences of the value in forward list
ListEmplaceBack Append value to the back of the list
ListEmplaceFront Append value to the front of the list
ListPopFront Extract and remove first element from the list
ListPopBack Extract and remove last element from the list
ListFront Get handle to the first node in the list
ListBack Get handle to the last node in the list
ListCount Count value occurrences in list object
ListContains Check if element is inside forward list
ListPrint Print list elements to the stdout
ListReadBackward Read list elements in reverse order
ListReadForward Read list elements in forward order