Ryan Culpepper
810d07d8d5
added bit-vector <-> {string,list} operations
2012-12-16 22:29:43 -05:00
Ryan Culpepper
e4da3edeec
fix popcount bug in bit-vector
2012-12-16 22:29:43 -05:00
Ryan Culpepper
28f1d4ff5d
make argument order of heap-sort consistent with sort
...
Old order is also accepted for backwards compatibility.
2012-12-16 22:29:43 -05:00
Asumu Takikawa
2676beaa7c
Make integer-sets implement generic interfaces
...
Supports gen:stream, gen:equal+hash, gen:custom-write
2012-12-14 16:21:07 -05:00
Asumu Takikawa
891ee1b19e
Fix missing set-integer-set-contents!
...
Closes PR 13368
This was a MzScheme -> Racket transition issue. Also
added tests and fixed some docs as well.
2012-12-14 10:56:29 -05:00
Jens Axel Søgaard
07b8507ce9
Rename to bit-vector-popcount
2012-11-28 22:04:25 +01:00
Jens Axel Søgaard
64f64a3607
Added bit-vector-count
2012-11-27 21:53:30 +01:00
Matthew Flatt
4ed45a6aef
data/bit-vector: some adjustments for consistency
...
Change `bit-vector-count' to `bit-vector-length', add arguments
to `bit-vector-copy', use `racket/private/vector-wraps' (which
should be moved to a public place) to implement things like
`for/bit-vector'.
2012-11-27 07:26:39 -07:00
Jens Axel Søgaard
028d14a877
Initial import of bit-vectors
2012-11-27 07:26:39 -07:00
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
14d8c8b5a5
Newlines at EOFs.
2012-11-06 14:07:15 -05:00
Stephen Chang
19f88c0f80
add heap sequencing fns to data/heap
2012-10-27 21:09:29 -04:00
Danny Yoo
bbab60545e
adding gvector-remove-last!
2012-01-30 16:14:22 -07:00
Ryan Culpepper
e2e63684de
data/order: added support for transparent structs, added tests
2011-10-30 18:51:16 -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
27b32464c5
add test for sequence used as an expression
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
Ryan Culpepper
ad76c9ea7b
fixed splay-tree bug
2010-10-04 11:54:03 -06:00
Ryan Culpepper
4aef03795d
added ordered-dict test
2010-10-04 11:54:03 -06:00
Ryan Culpepper
0d76f8ecbf
added data/order, docs
...
changed splay-tree, skip-list constructors to take orders
2010-09-17 16:54:54 -06:00
Ryan Culpepper
b74f3461e1
added general order functions
2010-09-17 16:54:54 -06:00
Ryan Culpepper
1a03a47842
updated splay-tree & skip-list interfaces, docs, tests, performance tests
2010-09-16 13:20:07 -06:00
Ryan Culpepper
19be445d89
contracts for gvector, skip-list
...
reorganized tests
2010-09-16 13:20:06 -06:00
Ryan Culpepper
ae645a18c1
added dict-*-contract to racket/dict
...
added experimental ordered-dict generics (not public yet, no docs)
2010-09-14 12:31:26 -06:00
Ryan Culpepper
58aa6873fe
added data/heap tests
...
doc fixes
2010-09-14 12:31:26 -06:00
Ryan Culpepper
999c33827c
tests for splay-tree and skip-list
2010-09-13 13:21:04 -06:00
Ryan Culpepper
cf47297a07
gvector tests, fixed bugs, added for/gvector docs
2010-09-06 22:15:29 -06: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