Îõ³h$ Žã     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).circular4Conversion from immutable to mutable circular stack.O(n).circular4Conversion from mutable to immutable circular stack.O(n).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: í always succeeds, even if there are actually no more elements on the stack (similar to walking in a circle).O(1).circularPush an element on the stack.O(1).circular Left fold.O(n).circular-Compute the sum of the elements on the stack.O(n).circular1Compute the product of the elements on the stack.O(n).   Safe-InferredÖ !"      !"#$%%circular-0.2.0-3rqJEauFJJI5LaEUh6dZlkData.Stack.CircularPaths_circularStackiStackiIndexMStackmStackmIndex $fEqStack $fReadStack $fShowStack replicate fromVectortoVectortakethawfreezegetpoppushfoldlsumproduct $fToJSONStack$fFromJSONStackbaseGHC.Errerrorversion getBinDir getLibDir getDynLibDir getDataDir getLibexecDir getSysconfDirgetDataFileName