Skip to content

tranzystorekk/cons-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linked list

About

This is a linked list implementation in Rust with some bells and whistles made for training purposes:

  • A Cons struct that resembles the head | tail consing/pattern matching in languages such as Lisp or Haskell
  • A linked_list! macro for quickly creating a pre-filled list
  • Iterators

Inspired by the Too many linked lists book.

unsafe code

Internal implementation uses raw pointers for jumping around nodes to work around Rust's strict lifetime constraints.

About

Singly-linked list implementation in Rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages