fixd.rdeque: Fix an rdeque

Description Usage Arguments Value References

Description

A method used behind the scenes to provide O(1)-amortized time for most operations. Runs in O(n) time worst case; restructures the rdeque so that the two internal rstacks are roughly the same length.

Usage

1
2
## S3 method for class 'rdeque'
fixd(d, ...)

Arguments

d

The rdeque to fix.

...

additional arguments to be passed to or from methods.

Value

a fixed deque.

References

Okasaki, Chris. Purely Functional Data Structures. Cambridge University Press, 1999.



Search within the rstackdeque package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.