Simon Cruanes
55c9d6c60b
fix tests
2016-04-05 20:01:39 +02:00
Simon Cruanes
53c4facdaf
Merge pull request #67 from johanneskloos/master
...
Provide `map` and `mapi` for some of the map types
2016-04-05 19:58:42 +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
f8bb365c94
implement CCString.{drop,take,chop_prefix,chop_suffix,filter,filter_map}
2016-04-05 14:38:49 +02:00
Simon Cruanes
4bb65a67df
more benchs
2016-04-05 14:25:30 +02:00
Simon Cruanes
2e5a360bcd
fix for qtest 2.2
2016-04-03 00:01:53 +02:00
Simon Cruanes
22b001c600
add CCList.fold_filter_map
2016-03-29 11:52:16 +02:00
Simon Cruanes
eea9d8139e
additional test for CCParse (using temp file)
2016-03-26 12:31:00 +01:00
Simon Cruanes
13dad5b6ac
add CCIO.File.with_temp for creating temporary files
2016-03-26 12:22:25 +01:00
Simon Cruanes
03350031a3
small cleanup
2016-03-26 12:21:20 +01:00
Simon Cruanes
0d2fc07e52
move tests
2016-03-26 12:08:20 +01:00
Simon Cruanes
cbe060fd03
headers
2016-03-26 12:08:07 +01:00
Simon Cruanes
8d41623ba5
add {CCArray,CCVector,CCList}.(--^) for right-open ranges
2016-03-26 12:05:31 +01:00
Simon Cruanes
6ccad958c4
make some tests a bit faster
2016-03-26 11:53:58 +01:00
Simon Cruanes
ef4c86d8a1
add CCString.pad for more webscale
2016-03-24 18:24:24 +01:00
Simon Cruanes
a039add6e7
add Containers.{Char,Result}
2016-03-22 18:42:08 +01:00
Simon Cruanes
6e905a839d
more iterations for some tests
2016-03-22 11:14:11 +01:00
Simon Cruanes
5e30104954
optimize KMP search in CCString.Find (hand-specialize code)
2016-03-20 23:20:46 +01:00
Simon Cruanes
71794d8d45
migrate to new qtest
2016-03-20 16:02:11 +01: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
c7766d195a
small comment
2016-03-11 23:08:27 +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
Simon Cruanes
f3f6df104e
more benchs
2016-03-10 16:34:42 +01:00
Simon Cruanes
7c9633f06f
change the semantics of CCString.find_all (allow overlaps)
2016-03-10 16:34:29 +01:00
jkloos
852d9c4186
Added myself to the AUTHORS file.
...
As per maintainer request.
2016-03-10 13:25:48 +01:00
Simon Cruanes
ce6d981973
add a special case for pattern of length 1 in CCString.find
2016-03-09 23:34:38 +01:00
Simon Cruanes
ab0b198f97
more tests, bugfixes, and benchs for KMP in CCString
2016-03-09 22:38:27 +01:00
Simon Cruanes
fb8661d1ba
moar inlining
2016-03-09 21:18:40 +01:00
Simon Cruanes
b5f54e3424
new benchmarks for strings
2016-03-09 21:10:06 +01:00
Simon Cruanes
5f188c4f7e
in CCString, use KMP for faster sub-string search; add find_all{,_l}
2016-03-09 21:09:32 +01:00
Simon Cruanes
9c338f193e
add CCString.rev
2016-03-09 19:45:38 +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
d6487a02a0
add CCList.Assoc.remove
2016-03-08 15:50:11 +01:00
Simon Cruanes
8094a31604
missing modules in doc/intro.txt
2016-03-08 11:37:55 +01:00
Simon Cruanes
8c27310834
enable -j 0 for ocamlbuild
2016-03-01 20:32:02 +01:00
Simon Cruanes
574b4ac62e
add CCImmutArray into containers.data
2016-03-01 20:31:53 +01:00
Simon Cruanes
d4549786c5
add more details on containers.data in tutorial
2016-02-29 21:58:58 +01:00
Simon Cruanes
61cb8485d2
fix broken links in README
2016-02-25 13:26:37 +01:00
Simon Cruanes
b129e23414
some modules should be deprecated properly
2016-02-25 10:19:54 +01:00
Simon Cruanes
0e5334b673
add an IO section to the tutorial
2016-02-24 22:35:24 +01:00
Simon Cruanes
a2179d4355
prepare for 0.16
2016-02-24 22:08:26 +01:00
Simon Cruanes
8524f43120
detail
2016-02-24 21:53:33 +01:00
Simon Cruanes
6674f5750b
add a tutorial file
2016-02-24 21:52:26 +01:00