Moonshine.jl logo
Moonshine.jl
  • Home
  • QuickStart
  • Design & conventions
  • Reference
    • AbstractGenealogy
    • Tree & ARG
    • Ancestral Intervals
    • Sequence
    • Sample
    • CheapStack
    • Global Values
    • Utilities
Version
  • Reference
  • CheapStack
  • CheapStack
GitHub

CheapStack

Moonshine.CheapStack — Type
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

  • store::UnsafeArrays.UnsafeArray{T, 1} where T

  • ptr::Base.RefValue{Int64}

source
Moonshine.CheapStack — Method
CheapStack(store)

Construct a CheapStack that uses an UnsafeArray as store.

source
« SampleGlobal Values »

Powered by Documenter.jl and the Julia Programming Language.

Settings


This document was generated with Documenter.jl version 1.10.2 on Saturday 31 May 2025. Using Julia version 1.11.5.