Commit graph

393 commits

Author SHA1 Message Date
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
Simon Cruanes
6639cb8e77 update implem of CCVector.equal; add a random test 2016-06-14 14:07:30 +02:00
Simon Cruanes
cfad88e906 add CCOpt.get_or with label, deprecates get 2016-06-14 13:58:37 +02:00
Simon Cruanes
4c998bf57a add CCArray.get_safe (close #70) 2016-05-20 11:32:27 +02:00
Simon Cruanes
0a5e131ce1 use structural equality 2016-05-17 23:23:45 +02:00
Fabian
22e07c5c5e Improve CCVector.equal 2016-05-17 22:33:47 +02:00
Simon Cruanes
3190278d86 add aliases to deprecated functions from String, add Fun.opaque_identity 2016-05-04 23:12:32 +02:00
Simon Cruanes
4cfb82a3fe add test 2016-04-25 11:51:38 +02:00
Glen Mével
f57d7267ac bug fix for CCList.range_by 2016-04-25 11:39:03 +02:00
Glen Mével
fb97af680b add CCList.range_by 2016-04-25 00:56:05 +02:00
Simon Cruanes
4b7897ec82 doc 2016-04-24 18:15:24 +02:00
Simon Cruanes
73eecfb10d prepare for 0.17 2016-04-22 23:01:37 +02:00
Simon Cruanes
b17f55b1d1 add monomorphic signatures in CCInt and CCFloat 2016-04-22 22:07:06 +02:00
Simon Cruanes
d3b6f6020f add CCList.{sorted_insert,is_sorted} 2016-04-22 15:19:22 +02:00
Simon Cruanes
9d9f709600 bugfix in CCFormat.to_file (fd was closed too early) 2016-04-22 14:22:15 +02:00
Simon Cruanes
07d11c4104 add CCOpt.if_ 2016-04-19 11:49:12 +02:00
Simon Cruanes
6f8717ccd0 fix 2016-04-18 15:50:53 +02:00
Simon Cruanes
b1b8bc1096 also fail in CCRandom.sample_without_replacement if n<=0 2016-04-18 15:39:55 +02:00
Simon Cruanes
203d870357 fix test and have CCRandom.split_list fail on len=0 2016-04-18 15:33:37 +02:00
Simon Cruanes
2f196ee9a2 more doc and test for CCRandom 2016-04-18 15:05:59 +02:00
Simon Cruanes
dba88f5302 add CCOpt.{for_all, exists} 2016-04-18 13:19:26 +02:00
Simon Cruanes
e2bc0cf55a add CCRef.{get_then_incr,incr_then_get} functions 2016-04-15 15:04:31 +02:00
Simon Cruanes
55a4c7ef7a add Result.{to,of}_err 2016-04-11 20:56:39 +02:00
Simon Cruanes
a9b91943e8 add CCFormat.within 2016-04-06 11:23:21 +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
22b001c600 add CCList.fold_filter_map 2016-03-29 11:52:16 +02: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