Moonshine.jl logo
Moonshine.jl
  • Home
  • Design & conventions
    • QuickStart
    • Python & tskit
    • Working with VCF files
    • Interactive visualization with Lorax
    • AbstractGenealogy
    • Tree & ARG
    • Ancestral Intervals
    • Sequence
    • Sample
    • ThreeTree
    • Global Values
    • Other
Version
  • Reference
  • Other
  • Other
Repository
Moonshine.CheapStack — Type
mutable struct CheapStack{T}

Simple stack container.

Functionalities

The following operations are supported:

  • isempty
  • empty!
  • first
  • length
  • pop!
  • push!

For convenience, CheapStack implements the iteration interface.

Fields

  • ptr::Ptr

  • beginning::Ptr

source
Moonshine.CheapStack — Method
CheapStack(ptr::Ptr{T})
CheapStack{T}(ptr::Ptr{Nothing})

Construct a CheapStack for storing objects of type T.

source
« Global Values

Powered by Documenter.jl and the Julia Programming Language.

Settings


This document was generated with Documenter.jl version 1.19.1 on Saturday 17 October 2026. Using Julia version 1.13.2.

mutable struct CheapStack{T}

Simple stack container.