Commit graph

1072 commits

Author SHA1 Message Date
Jacques-Pascal Deplaix
6d2063ded4 Internally shadow polymorphic operators and functions from Pervasives 2018-01-14 23:32:13 +00:00
Jacques-Pascal Deplaix
01a3b94ff9 Add a CCMonomorphic module shipped into a containers.monomorphic library 2018-01-14 23:32:13 +00:00
Simon Cruanes
631b33f62e fix doc 2018-01-14 16:21:59 -06:00
Simon Cruanes
4ffe1bbac3 make complexity of Array.lookup explicit (closes #174) 2018-01-06 17:14:00 -06:00
Simon Cruanes
1b9c014e25 use neat trick to alias properly type of Format 2018-01-06 08:24:42 -06:00
Simon Cruanes
a160ae3672 missing type aliases (see #173) 2018-01-04 08:53:33 -06:00
Simon Cruanes
858ef0e90f missing extension of Format 2018-01-02 23:39:55 +01:00
Simon Cruanes
18c9f88411 prepare for 1.5 2018-01-02 18:14:32 +01:00
Simon Cruanes
7f6cb0f673 have CCList.{get,insert,set}_at_idx work with negative indices 2017-12-25 17:30:00 +01:00
Simon Cruanes
d8610646d8
Merge pull request #170 from jpdeplaix/remove_at_neg_idx
Allow negative indexes in `CCList.remove_at_idx`
2017-12-25 17:25:15 +01:00
Simon Cruanes
17dc7bb5c3 fix default implems of CCList.compare_length{s,_with} 2017-12-24 17:22:02 +01:00
Simon Cruanes
c12f2d2095 more tests 2017-12-24 17:21:57 +01:00
Simon Cruanes
a249f2ac0b missing compat functions 2017-12-24 17:10:02 +01:00
Simon Cruanes
f6b3a7addf warnings 2017-12-24 17:07:59 +01:00
Simon Cruanes
df07cf5bb2 remove all uses of cppo 2017-12-24 16:43:17 +01:00
Jacques-Pascal Deplaix
4b30aba080 Allow negative indexes in CCList.remove_at_idx 2017-12-23 15:35:35 +00: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
Simon Cruanes
3a4d827d80 fix containers.top (closes #155) 2017-12-15 09:43:44 +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
Stavros Polymenis
a28dd399f4 Improve CCImmutArray.sub comments and versioning 2017-11-20 20:42:17 +00:00
SP
c49458d923 Implement CCImmutArray.sub, but creates a copy 2017-11-20 16:14:04 +00:00
Simon Cruanes
3b50617744
Merge pull request #158 from jpdeplaix/fix-cctrie
fix bug in `CCTrie` where an assertion would use polymorphic comparison on arbitrary types
2017-11-07 18:24:17 +01:00
Jacques-Pascal Deplaix
3d27bd285e Add a regression test 2017-11-07 18:08:38 +01:00
Simon Cruanes
66d4ae9811 missing function in CCListLabels 2017-11-07 13:56:38 +01:00
Jacques-Pascal Deplaix
0ed3c70669 Fix CCTrie.Make: Remove polymorphic comparison 2017-11-07 12:11:41 +01:00
Guillaume Bury
03f3457f6d Add CCCache.add 2017-11-01 03:25:08 +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
9a2dab6802 Merge pull request #151 from quicquid/ccfqueue-bugfix
bugfix for `CCFQueue.take_back_exn` : wrong exception
2017-09-18 10:43:54 +02:00
Martin
49721c4bc5 CCFQueue.take_back_exn raised InvalidArg instead of Empty on an empty queue 2017-09-18 10:40:03 +02:00
Simon Cruanes
f254a0f6e4 small doc 2017-09-18 10:38:54 +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
c792d70ac7 assertions and cleanup in CCPool 2017-09-13 18:39:14 +02:00