Download the PHP package krooyh/sorted-linked-list without Composer
On this page you can find all versions of the php package krooyh/sorted-linked-list. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package sorted-linked-list
PHP Sorted Linked List
The Sorted Linked List is library providing a sorted linked list functionality.
Requirements
- PHP version >= 8.4
Installation
You can install the Sorted Linked List using the package manager composer.
Usage
Sorted Linked List accepts ints and strings. By default, the list will be sorted in ascending order but you can specify the direction.
If you provide an array of elements in the constructor, and you won't specify a type, the type will be inferred from the first element or exception will be thrown if the type is not supported.
If you provide a type in the constructor, the list will be stored in that type.