Commit Graph

8 Commits

Author SHA1 Message Date
Robby Findler
98633665b3 extend data/queue library
- add enqueue-front!

- add queue-filter!

- use the predicates instead of the /c contracts

- make queue-length take constant time

- add some random tests

- note the running times of all of the operations in the docs

- make queues be sequences directly (and use make-do-sequence
  to implement in-queue instead of building a list)

- added non-empty-queue? (note extra hypen as compared
  to the past; this seems better since the function
  wasn't exported before and we already have other
  functions named "non-empty-<something>" but not
  others namedn "nonempty-<something>")
2012-11-21 11:10:02 -06:00
Robby Findler
ac7c37812b fix dequeue! to actually not hold onto queue elements
(the comments on line 11-13 said that it did this already,
but it didn't)

also add a test case to be sure that it stays this way
2012-11-21 11:10:02 -06:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Jon Rafkind
5f2d18c1f9 add in-queue 2010-11-16 23:09:19 -07:00
Jon Rafkind
7b24eaf58e rename queue-count to queue-length 2010-11-16 14:36:49 -07:00
Jon Rafkind
73be67942d add queue->list 2010-11-16 14:36:49 -07:00
Jon Rafkind
58188ad0c6 add queue-count 2010-11-15 22:32:08 -07:00
Sam Tobin-Hochstadt
0635fc6d75 Create data/ collection.
- Initially populated with queues, skip-lists, and interval-maps from unstable/
 - Tests in tests/data, docs in data/scribblings
2010-08-26 18:22:28 -04:00