h$      Circular stacks of fixed size(c) 2021 Dominik SchrempfGPL-3.0-or-laterdominik.schrempf@gmail.comunstableportableNone circularImmutable circular stack; useful, for example, to save, or restore a mutable circular stack.circularMutable circular stacks with fixed size are just mutable vectors with a pointer to the last element.circularA circular stack of given size with the same element replicated.Call ) if the maximum size is zero or negative.O(n).circularConvert a vector to a circular stack with size being equal to the length of the vector. The first element of the vector is the oldest element of the stack, the last element of the vector is the youngest element of the stack.The vector must be non-empty.O(n).circularConvert a vector to a circular stack with size being equal to the length of the vector. The element of the vector at the given index is the youngest element of the stack, the next element of the vector is the oldest element of the stack.The vector must be non-empty.O(n).circularConvert a circular stack to a vector. The first element of the returned vector is the oldest element of the stack, the last element of the returned vector is the youngest element of the stack.O(n).circularConvert the last k elements of a circular stack to a vector. The first element of the returned vector is the oldest element of the stack, the last element of the returned vector is the youngest element of the stack.,The size of the stack must be larger than k.O(k).circularSize of the stack.circular0Get the last element without changing the stack.O(1). circularPop the youngest element from the stack and put the focus on the previous element. Be careful:The stack is always full! Popping returns the last element and moves the index to the second-last element, but the element is not truly removed from the stack. It is only put to the end of the queue.Hence,   always succeeds, even if there are actually no more elements on the stack (similar to walking backwards in a circle).O(1). circularPush an element on the stack.O(1). circular>Monadic fold from young to old over all elements of the stack.%Please also see the documentation of  .O(n). circularSee   but only over the k youngest elements on the stack.O(k).circular4Conversion from immutable to mutable circular stack.O(n).circular4Conversion from mutable to immutable circular stack.O(n).   Safe-Inferred       !"'circular-0.4.0.1-9d2NHEPJ6uO9zAdSdKSgGwData.Stack.CircularPaths_circularStackMStack replicate fromVectorfromVectorWithIndextoVectortakesizegetpoppushfoldMfoldKM $fEqStack $fReadStack $fShowStackthawfreeze $fToJSONStack$fFromJSONStackbaseGHC.Errerrorversion getBinDir getLibDir getDynLibDir getDataDir getLibexecDir getSysconfDirgetDataFileName