Commit graph

470 commits

Author SHA1 Message Date
Simon Cruanes
b1837e7d05 add labels in CCArray 2016-11-11 00:39:58 +01:00
Simon Cruanes
f29329fb03 deal properly with broken symlinks and permission errors 2016-11-11 00:18:16 +01:00
Simon Cruanes
a231bfb9c4 fix containers.ml 2016-11-03 22:21:22 +01:00
Simon Cruanes
192f315f53 simplify CCHash
- remove functor
- use `Hashtbl.seeded_hash` to combine values
2016-11-03 22:18:23 +01:00
Simon Cruanes
2c00983262 split CCList.Zipper into its own module, CCZipper in containers.data 2016-11-03 22:06:41 +01:00
Simon Cruanes
6ff6c51687 change argument ordering in CCList.Assoc 2016-11-03 22:03:13 +01:00
Simon Cruanes
ad1513e36c remove CCList.Idx, rename its functions to toplevel 2016-11-03 21:57:24 +01:00
Simon Cruanes
bf609e7f04 remove CCList.Set, move functions to toplevel and rename them 2016-11-03 21:45:15 +01:00
Simon Cruanes
4f6bce60e5 split CCArray.Sub into CCArray_slice 2016-11-03 21:24:21 +01:00
Simon Cruanes
bd7a9ce070 add CCString.edit_distance 2016-11-03 20:27:26 +01:00
Simon Cruanes
72d43c6eeb add CCParse into core, a simple, lightweight version of parser combs 2016-11-03 20:10:18 +01:00
Simon Cruanes
46cee7096c expose CCString.Find for efficient sub-string searching 2016-11-03 18:48:25 +01:00
Simon Cruanes
83b0744a1b more type safety in String.Find 2016-11-03 18:39:03 +01:00
Simon Cruanes
5288713b76 remove poly-variant based errors, use result everywhere 2016-11-03 18:33:34 +01:00
Simon Cruanes
13b283a91d remove buffer printers, rename pretty-printers to pp 2016-11-03 18:24:11 +01:00
Simon Cruanes
d4d7bc1de2 add CCFormat.Dump.{result,to_string} 2016-11-03 18:11:05 +01:00
Simon Cruanes
c89186a100 remove CCPrint (also, update tests relying on it) 2016-11-03 17:57:41 +01:00
Simon Cruanes
c7b815509d prepare for 0.21 2016-11-03 16:04:12 +01:00
Simon Cruanes
af4c3fc195 change boxing in CCFormat.Dump; add example/doc 2016-11-03 15:57:03 +01:00
Simon Cruanes
9045fcca0b add CCFormat.{with_color_sf,fprintf_dyn_color,sprintf_dyn_color}
more dynamic way of adding colors, switching colors on/off, etc.
2016-11-03 15:48:21 +01:00
Simon Cruanes
0d9d17d5db add CCFormat.Dump for easy debugging (see #82) 2016-11-03 15:36:25 +01:00
Simon Cruanes
4ff174ce18 (breaking) make default start/stop arguments empty in printers (#82) 2016-11-03 15:19:50 +01:00
Simon Cruanes
3e7cbc1420 add alias Containers.IO 2016-11-02 08:22:03 +01:00
Simon Cruanes
18b32f8313 bugfixes in CCArray.Sub 2016-11-01 12:17:01 +01:00
Simon Cruanes
61ff75dca0 bugfix + tests for CCArray.Sub.sub 2016-11-01 11:46:14 +01:00
Simon Cruanes
b7db149e27 add CCArray.Sub.to_list 2016-11-01 11:27:07 +01:00
Simon Cruanes
7ba8f58571 fix typo 2016-10-19 23:59:23 +02:00
Simon Cruanes
2a872907a1 add CCArray.{sorted,sort_indices,sort_ranking} (closes #81) 2016-10-19 18:18:05 +02:00
Simon Cruanes
bc7967054f prepare for 0.20 2016-10-14 11:33:53 +02:00
Simon Cruanes
81ca239ccc bugfix in CCArray.equal 2016-10-14 11:28:44 +02:00
Simon Cruanes
59a463a882 small fix + test 2016-10-14 11:24:57 +02:00
Simon Cruanes
fed7dd41e0 add functions in CCArray: fold2,iter2,map2 2016-10-13 10:04:58 +02:00
Simon Cruanes
53030c4c29 more general types for CCArray.{for_all2,exists2} 2016-10-13 10:04:23 +02:00
Simon Cruanes
a99720945b add CCArray.rev 2016-10-13 10:01:21 +02:00
Roma Sokolov
d4d22b1488 Fixes map_or
~default arg for `map_or`, as well as function, should not depend on the type of error case.
2016-10-04 14:27:34 +03:00
Simon Cruanes
d7e8cb24fd add CCFloat.round 2016-09-25 19:43:21 +02:00
Simon Cruanes
103963dc45 style 2016-09-25 19:39:02 +02:00
Simon Cruanes
e4c6752b6b add CCVector.append_gen 2016-09-25 19:38:03 +02:00
Simon Cruanes
3e50420ce8 add CCList.{head_opt,last_opt} 2016-09-25 19:34:05 +02:00
Simon Cruanes
7a823b16d8 fix CCString.*_ascii; add CCChar.{upper,lower}case_ascii 2016-09-18 20:31:53 +02:00
Simon Cruanes
b249adf86f add CCInt.{print_binary,to_string_binary} + tests (thanks @gsg) 2016-09-18 10:37:05 +02:00
Simon Cruanes
913cfcacea prepare for 0.19 2016-08-22 09:58:09 +02:00
Simon Cruanes
7b49dd7f3d fix bug in CCString.Split thanks to @copy (close #75) 2016-08-22 09:26:36 +02:00
Simon Cruanes
a0b10101c7 add regression test for #75 2016-08-22 09:20:17 +02:00
Simon Cruanes
779376f2b1 move test from cppo.ml file to .mli file 2016-08-22 09:19:49 +02:00
Fabian
47abd87f74 Fix CCString.Split.{left,right} (#75) 2016-08-22 01:52:44 +02:00
Simon Cruanes
13f6660373 cleanup and more tests in CCHeap 2016-07-04 23:25:55 +02:00
Simon Cruanes
c573f447bc add more generic printers for CCError and CCResult (close #73) 2016-06-19 01:02:06 +02:00
Simon Cruanes
103dfb8c73 add CCstring.of_char 2016-06-17 11:54:30 +02:00
Simon Cruanes
228011d9aa prepare for 0.18 2016-06-14 14:12:02 +02:00