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/deque.

Search Document