Commit graph

393 commits

Author SHA1 Message Date
Simon Cruanes
df07cf5bb2 remove all uses of cppo 2017-12-24 16:43:17 +01:00
Simon Cruanes
ed10db67b6 closes #166 by adding a drop parameter to string split functions 2017-12-21 14:07:52 +01:00
Simon Cruanes
9ac7984f74 add Hash.const0 for trivial hash function that ignores its input 2017-12-15 13:49:34 +01:00
Simon Cruanes
632526e407 improve compatibility with the stdlib 2017-12-15 09:49:54 +01:00
Maciej Woś
58277c77bb Automatically add labeled interface to CCList and CCArray 2017-12-06 13:05:20 +09:00
Jacques-Pascal Deplaix
78ee7e5c2f Add List.count 2017-12-03 21:30:26 +00:00
Jacques-Pascal Deplaix
e20d0ccfcc Add String.is_empty 2017-12-01 08:36:40 +00:00
Simon Cruanes
c66c96d252 small fixes in ocamldoc 2017-11-29 15:00:05 +01:00
Simon Cruanes
946a585a9e backport some functions added in 4.05 in CCList 2017-11-29 14:58:35 +01:00
Simon Cruanes
f65bcd212d small comment 2017-11-29 14:58:35 +01:00
Simon Cruanes
2fbf765466 fix small warning 2017-11-29 14:58:35 +01:00
Simon Cruanes
d09820b916 add functions from 4.05 into CC{Map,Set} 2017-11-29 14:58:35 +01:00
Simon Cruanes
66d4ae9811 missing function in CCListLabels 2017-11-07 13:56:38 +01:00
Simon Cruanes
92c683a9c4 doc: CCList.cartesian_product returns results in unspecified order (close #154) 2017-10-27 15:39:01 +02:00
Simon Cruanes
d6f7f1570e prepare for 1.4 2017-10-11 09:29:31 +02:00
Simon Cruanes
66a8dfc396 add a test 2017-10-05 18:19:48 +02:00
Simon Cruanes
336ebe63f9 style and comments for the new CCList.map 2017-10-05 11:59:03 +02:00
Yotam Barnoy
0aaab670f7 list: Use efficient chunking algorithm for tail-recursive list map
See discussion at
https://discuss.ocaml.org/t/a-new-list-map-that-is-both-stack-safe-and-fast/865/32
2017-10-03 17:45:26 -04:00
Simon Cruanes
4096122979 add CCMap.union 2017-09-30 15:02:03 +02:00
Simon Cruanes
e9b9ed1d92 add CCRef.swap 2017-09-22 17:52:24 +02:00
Simon Cruanes
4cc9862ef8 refactoring in vector 2017-09-17 21:37:33 +02:00
Fabian
03f6a1fe5e Use ensure_not_empty_ when vector is known to be non-empty 2017-09-16 21:31:56 +02:00
Fabian
9219d24356 Fix CCVector.append_array (empty vector case) 2017-09-16 21:29:47 +02:00
Fabian
f1942fd0d4 More tests for CCVector.append and CCVector.append_array 2017-09-16 21:25:55 +02:00
Simon Cruanes
7405c1c346 more tweaks and benchmarks for CCString.{prefix,suffix} 2017-09-12 10:55:24 +02:00
Simon Cruanes
a323809aa0 faster CCString.{prefix,suffix}
see https://github.com/ocaml-batteries-team/batteries-included/issues/792
for some discussion
2017-09-12 10:37:32 +02:00
Simon Cruanes
d7b90d3ba3 add CCArray.swap 2017-09-10 19:56:39 +02:00
Simon Cruanes
54e12b7f62 style update for some string functions 2017-09-07 10:10:34 +02:00
CHEN Xian-an
90e96e6339 fix CCFun.tap example in doc 2017-08-28 23:46:05 +08:00
Simon Cruanes
c575f97369 whitespace 2017-07-29 19:24:37 +02:00
Simon Cruanes
bedf9ecc1e prepare for 1.3 2017-07-29 18:08:58 +02:00
Simon Cruanes
acb286d8e8 add CCString.compare_natural (closes #146) 2017-07-23 13:48:31 +02:00
Simon Cruanes
d076afc405 fix in doc (closes #145) 2017-07-21 15:02:42 +02:00
Simon Cruanes
b7b6bd19a3 deprecate CCBool.negate 2017-07-21 15:02:27 +02:00
Simon Cruanes
609d51c89e bugfix in CCList.split 2017-07-04 16:25:28 +02:00
Simon Cruanes
aab19f6a50 update headers; reindent 2017-07-04 13:13:24 +02:00
Simon Cruanes
296cdc8748 small changes to CCList 2017-06-29 23:36:54 +02:00
Bikal Gurung
eab5fbb36a Addresses reviewer comments. 2017-06-29 21:15:01 +01:00
Bikal Gurung
745c0cd78e Addresses reviewer comments 2017-06-29 18:13:39 +01:00
Bikal Gurung
7a9a741bb0 Adds tests for split function. 2017-06-28 23:27:06 +01:00
Bikal Gurung
973062158a Implements safe version of List.split 2017-06-28 22:10:50 +01:00
nilsbecker
78591cf621 removed trailing spaces 2017-06-24 18:16:21 +02:00
nilsbecker
92958cc116 duplicated the changes in array_slice.mli 2017-06-24 13:48:20 +02:00
nilsbecker
a2b2eaec2e small correction 2017-06-24 13:45:49 +02:00
nilsbecker
4058fc799e typos and clarification in doc strings
for sort_indices, sort_ranks and lookup_exn
2017-06-24 11:59:59 +02:00
Simon Cruanes
b2f8eb5b27 update to qcheck 0.6 2017-05-30 09:16:37 +02:00
Simon Cruanes
5d768aeeb2 add CCArray.find_map{,_i}, deprecated older names (closes #129) 2017-05-20 13:18:36 +02:00
Simon Cruanes
bfefda632b add CCList.{keep,all}_{some,ok} (closes #124) 2017-05-20 13:15:18 +02:00
Simon Cruanes
3ab610ba0e prepapre for 1.2 2017-05-01 16:59:25 +02:00
Simon Cruanes
465b5992e8 add CCString.{l,r}trim (close #121) 2017-05-01 16:54:29 +02:00