Commit graph

208 commits

Author SHA1 Message Date
Simon Cruanes
73eecfb10d prepare for 0.17 2016-04-22 23:01:37 +02:00
Simon Cruanes
bb74a33385 add (--^) to CCRAl, CCFQueue, CCKlist (closes #56); add CCKList.Infix 2016-04-22 22:50:37 +02:00
Simon Cruanes
0485bc5cd9 formattign, headers 2016-04-22 22:08:40 +02:00
Simon Cruanes
c14191f1bd small fix for 4.0 compat 2016-04-20 10:05:04 +02:00
Simon Cruanes
308ea3a650 add CCTrie.longest_prefix 2016-04-19 23:44:24 +02:00
Simon Cruanes
3c9548ebf2 provide additional ordering properties in CCTrie.{above,below}
- also add tests for those
2016-04-19 23:32:16 +02:00
Simon Cruanes
ae06357487 formatting in CCTrie 2016-04-19 22:33:42 +02:00
Simon Cruanes
b9f7d2e18a comments and doc for CCDeque 2016-04-19 00:19:13 +02:00
Simon Cruanes
55c9d6c60b fix tests 2016-04-05 20:01:39 +02:00
jkloos
ec3c881939 Added @since tags. 2016-04-05 17:55:36 +02:00
jkloos
3ef3465156 Merge https://github.com/c-cube/ocaml-containers 2016-04-05 16:43:26 +02:00
jkloos
de2244641b Added tests. 2016-04-05 16:39:05 +02:00
jkloos
de859a844d Added map/mapi to some of the map types. 2016-04-05 16:27:30 +02:00
Simon Cruanes
6e46687ee8 fix compilation error 2016-03-14 20:38:59 +01:00
Simon Cruanes
d694d20b26 modify CCPersistentHashtbl.merge and add CCMap.merge_safe 2016-03-14 20:13:20 +01:00
Simon Cruanes
33dd681acd update headers 2016-03-14 20:04:52 +01:00
Simon Cruanes
69e8f7abf8 Merge pull request #60 from johanneskloos/master
Make `CCPersistentHashtbl.S.merge` more general.
2016-03-14 13:56:26 +01:00
Simon Cruanes
0c04df58b0 update CCHet to not use Obj.magic; add test 2016-03-11 21:20:25 +01:00
Simon Cruanes
3a34cc9aa8 add CCHet, heterogeneous containers (table/map) indexed by keys
Difference with CCMix{tbl,map} is that there is no other key than the
polymorphic injection.
2016-03-11 16:11:16 +01:00
jkloos
fecbd7683a Make CCPersistentHashtbl.S.merge more general.
This patch brings the merge function of CCPersistentHashtbl
in line with the merge functions of other maps
(Map, BatMap from batteries). In particular, its signature
changes from the restrictive
  merge: (key -> 'a option -> 'a option -> 'a option) ->
    'a t -> 'a t -> 'a t
to a more general
  merge: (key -> 'a option -> 'b option -> 'c option) ->
    'a t -> 'b t -> 'c t
2016-03-09 11:28:55 +01:00
Simon Cruanes
574b4ac62e add CCImmutArray into containers.data 2016-03-01 20:31:53 +01:00
Simon Cruanes
a2179d4355 prepare for 0.16 2016-02-24 22:08:26 +01:00
Simon Cruanes
db1de6e6e6 add CCGraph.make and utils 2016-02-21 21:45:14 +01:00
Simon Cruanes
1993eabd21 breaking: change the API of CCMixmap
- make it easier to use |> with CCMixmap
- add test and example
2016-02-19 19:58:21 +01:00
Simon Cruanes
52f585d27b headers 2016-02-19 19:44:39 +01:00
Simon Cruanes
03a29d72cb optional argument ~eq to CCGraph.Dot.pp 2015-12-31 16:18:33 +01:00
Simon Cruanes
d569cf59bb prepare for 0.15 2015-12-22 10:34:14 +01:00
Simon Cruanes
112dd7da1b doc 2015-12-22 10:21:27 +01:00
Simon Cruanes
c58d31ed98 doc 2015-12-15 16:49:32 +01:00
Simon Cruanes
9cddc2bcf1 some benchmarks for graphs 2015-12-14 14:57:04 +01:00
Simon Cruanes
99919ae1d3 more cache friendliness 2015-11-28 12:43:50 +01:00
Simon Cruanes
0ec5545564 wip: CCAllocCache, an allocation cache for short-lived arrays 2015-11-28 12:10:03 +01:00
Fourchaux
44387de784 Correction typos (fichiers src) 2015-11-08 22:27:59 +01:00
Simon Cruanes
60aea81750 prepare for 0.14 2015-11-08 13:04:09 +01:00
Simon Cruanes
7105221ff0 add a test in CCGraph 2015-10-23 18:38:29 +02:00
Simon Cruanes
e1e51470f1 add CCHashtbl.add mimicking the stdlib Hashtbl.add 2015-10-22 22:43:00 +02:00
Simon Cruanes
54c2e4541e add CCPersistentHashtbl.stats 2015-10-21 22:48:51 +02:00
Simon Cruanes
15d5da628d reimplementation of CCPersistentHashtbl 2015-10-21 22:38:48 +02:00
Simon Cruanes
219e06c1fe update tests so they run faster 2015-09-27 19:27:44 +02:00
Simon Cruanes
044cbf0c20 prepare for 0.13 2015-09-23 16:26:07 +02:00
Simon Cruanes
4dc91894af more tests 2015-09-22 13:55:26 +02:00
Simon Cruanes
3c233d9cf3 use more labels in CCHashtrie,CCRAL,CCWBTree 2015-09-21 17:18:43 +02:00
Simon Cruanes
f63fd099b0 utils 2015-09-19 18:06:08 +02:00
Simon Cruanes
18289b3b72 refactor CCRAL 2015-09-19 17:57:36 +02:00
Simon Cruanes
b2c5d944f7 add many functions to CCRAL 2015-09-19 17:37:54 +02:00
Simon Cruanes
f685303a32 optim in CCHashtrie with more compact assoc-lists 2015-09-19 14:35:17 +02:00
Simon Cruanes
359740a587 more tests 2015-09-19 12:41:02 +02:00
Simon Cruanes
13842375a2 api change for CCHashtrie:
- hide implementation details (arrays)
- remove `A32`
- introduce new `Transient` system for fast batch modifications
2015-09-19 02:02:22 +02:00
Simon Cruanes
384d81945e more tests 2015-09-18 22:51:37 +02:00
Simon Cruanes
eee89aa7a4 testing frenzy 2015-09-16 21:59:30 +02:00