linked_list

Implementation of Linked List
HEAD Latest release released

Crystal Linked List CircleCI

A simple linked list implementation in Crystal

Installation

Add this to a project's shards.yml

dependencies:
  linked_list:
    git: https://github.com/abvdasker/crystal-linked-list.git

Then run shards

Usage

require "linked_list"

list = LinkedList(Int32 | String).new
list.append(1)
list.push(2)
list << "foo"

list.peek        # "foo"
list.pop         # "foo"
list.pop         # 2
list.unshift(1)
list.shift       # 1
linked_list:
  github: abvdasker/crystal-linked-list
  
License MIT
Crystal 0.21.1

Authors

Dependencies 0

Development Dependencies 1

  • ameba ~> 0.11.0
    {'github' => 'crystal-ameba/ameba', 'version' => '~> 0.11.0'}

Dependents 0

Last synced .
search fire star recently