Îõ³h$  o     Circular stacks of fixed size(c) Dominik Schrempf, 2020GPL-3.0-or-laterdominik.schrempf@gmail.comunstableportableNone ÔÙ 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 deepest (oldest) element of the stack, the last element of the vector is the current (newest) 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 deepest (oldest) element of the stack, the last element of the returned vector is the current (newest) 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 deepest (oldest) element of the stack, the last element of the returned vector is the current (newest) 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 current 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)Left fold over all elements of the stack. Please see the documentation of  .O(n).circular-Compute the sum of the elements on the stack. Please see the documentation of  .O(n).circular1Compute the product of the elements on the stack. Please see the documentation of  .O(n).circular4Conversion from immutable to mutable circular stack.O(n).circular4Conversion from mutable to immutable circular stack.O(n).   Safe-Inferred b !"      !"#$%%circular-0.3.0-LBiQEts1rJm4N5EkqSRJJKData.Stack.CircularPaths_circularStackiStackiIndexMStackmStackmIndex replicate fromVectortoVectortakegetpoppushfoldlsumproduct $fEqStack $fReadStack $fShowStackthawfreeze $fToJSONStack$fFromJSONStackbaseGHC.Errerrorversion getBinDir getLibDir getDynLibDir getDataDir getLibexecDir getSysconfDirgetDataFileName