Skip to content

abvdasker/crystal-linked-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple linked list implementation in Crystal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •