Îõ³h$ j Ä     Circular stacks of fixed size(c) Dominik Schrempf, 2020GPL-3.0-or-laterdominik.schrempf@gmail.comunstableportableNone ÔÙ j circularÝImmutable circular stack; useful, for example, to save, or restore a mutable circular stack.circularåMutable circular stacks with fixed size are just mutable vectors with a pointer to the last element.circularÀA circular stack of given size with the same element replicated.Call ) if the maximum size is zero or negative.O(n). circularâConvert 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). circularÂConvert 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). circularÙConvert 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). circular0Get the last element without changing the stack.O(1). circularÓPop 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.3.1-IaWU2KYIZ3d7d9ymHEVsqaData.Stack.CircularPaths_circularStackiStackiIndexMStackmVectormIndex replicate fromVectortoVectortakegetpoppushfoldMfoldKM $fEqStack $fReadStack $fShowStackthawfreeze $fToJSONStack$fFromJSONStackbaseGHC.Errerrorversion getBinDir getLibDir getDynLibDir getDataDir getLibexecDir getSysconfDirgetDataFileName