Skip to content

๐Ÿšƒ A double ended queue data structure!

Notifications You must be signed in to change notification settings

gleam-lang/deque

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

deque

Package Version Hex Docs

gleam add gleam_deque@1
import gleam/deque

pub fn main() {
  let letters = 
  deque.new()
  |> deque.push_front("u")
  |> deque.push_back("c")
  |> deque.push_front("L")
  |> deque.push_back("y")


  deque.to_list(letters)
  // -> ["L", "u", "c", "y"]
}

Further documentation can be found at https://hexdocs.pm/gleam_deque/.