Commit graph

1575 commits

Author SHA1 Message Date
Simon Cruanes
f1459b57df add CCHash.{list,array}_comm 2017-02-11 13:37:32 +01:00
Simon Cruanes
8ddacbb028 add CCHashtbl.Poly and fix issue in Containers (close #46) 2017-02-11 13:28:47 +01:00
Simon Cruanes
edc488b909 add CCHashtbl.get_or_add 2017-02-07 11:38:10 +01:00
Simon Cruanes
827da5a01b more doc 2017-02-06 18:04:27 +01:00
Simon Cruanes
1e9f5a9a21 more flexible CCList.sublists_of_len 2017-02-06 17:35:12 +01:00
Simon Cruanes
fe2336bd3b add CCList.sublists_of_len (close #97) 2017-02-06 17:25:23 +01:00
Simon Cruanes
8462b89bdf add Char.{of_int{,_exn},to_int} (close #95) 2017-01-30 14:46:13 +01:00
Simon Cruanes
126bb2f3f2 test for #94 (using Thread.yield to trigger segfault) 2017-01-26 23:49:59 +01:00
Simon Cruanes
5e7cfed9b8 containers.top: remove printers on structural types (#71) 2017-01-26 15:50:18 +01:00
Simon Cruanes
61f1ca3231 update a test 2017-01-26 14:20:24 +01:00
Simon Cruanes
9a46b4527c reindent in containers.thread 2017-01-25 00:24:14 +01:00
Marcello Seri
59208fd9c6 Fix with_acquire: release a non locked mutex is UB
This is segfaulting (on ubuntu 16.04 and 16.10) when trying to release the unlocked mutex in the release stage (in general this is an undefined behavior).
2017-01-25 00:15:45 +01:00
Simon Cruanes
56462a862b Merge branch 'master' into prepare-1.0 2017-01-25 00:15:03 +01:00
Simon Cruanes
03fd42e67d reindentation 2017-01-25 00:08:12 +01:00
Simon Cruanes
416d19a763 remove deprecated functions and modules
- `CCList.{split,findi,find}`
- `CCHashtbl.{MakeDefault,MakeCounter}`
- `CCVector.flat_map'`
2017-01-25 00:08:12 +01:00
Simon Cruanes
4821772dcf Revert "remove containers.thread"
This reverts commit 9f34a7f6e3.
2017-01-25 00:08:12 +01:00
Simon Cruanes
cebee407ea add makefule rule for ocp-indent 2017-01-25 00:08:12 +01:00
Simon Cruanes
0a7d2a2411 update benchmarks (ignoring hamt); remove useless old script 2017-01-24 23:43:15 +01:00
Simon Cruanes
a0f3a5d24b update comments in CCParse 2017-01-24 23:28:08 +01:00
Simon Cruanes
dbe00f6ca5 update containers.ml so as to include all core containers 2017-01-24 23:26:23 +01:00
Simon Cruanes
8aab182642 large refactor of CCHash, main type is now 'a -> int 2017-01-24 23:21:10 +01:00
Simon Cruanes
8ad0dce97b CCFormat: remove start/stop args, make sep a unit printer 2017-01-24 22:50:26 +01:00
Simon Cruanes
e5adafced6 many improvements to CCFormat
- add `some`
- add `return`
- add `const`
- add `of_to_string`
2017-01-24 22:39:13 +01:00
Simon Cruanes
d76d3b95e3 add CCOrd.Infix 2017-01-24 22:19:59 +01:00
Simon Cruanes
6823015b63 update headers 2017-01-24 15:25:57 +01:00
Simon Cruanes
1e8f378f02 Merge pull request #93 from orbitz/add-predicates-for-result
Add `is_ok` and `is_error`, simple predicates for testing a result
2017-01-17 20:12:27 +01:00
orbitz
13888edb4d Add is_ok and is_error, simple predicates for testing a result. This is useful for tests or asserts 2017-01-17 20:09:26 +01:00
Simon Cruanes
3f80e794ba add CCFormat.tee 2017-01-11 18:40:07 +01:00
Simon Cruanes
ed38c25711 replace or_ by default in labelled functions 2016-12-29 11:45:55 +01:00
Simon Cruanes
601354305d breaking: remove trailing _ in CCOrd primitives 2016-12-29 11:43:48 +01:00
Simon Cruanes
f0aecf3b8e add doc for of_list in relevant modules (close #85) 2016-12-29 11:39:21 +01:00
Simon Cruanes
eb217a0cf1 add Labels modules to doc intro 2016-12-29 11:37:37 +01:00
Simon Cruanes
9b53e3c2a5 use Labels versions of CCList and CCArray 2016-12-29 11:07:44 +01:00
Simon Cruanes
0046bea415 bugfix: do not use Sequence.flatMap (close #90)
the function was deprecated and has been removed in sequence 0.9
2016-12-29 10:45:33 +01:00
Simon Cruanes
e8cd571005 prepare 0.22 2016-12-18 01:32:52 +01:00
Simon Cruanes
331d87e6a9 update opam file 2016-12-17 17:29:29 +01:00
Simon Cruanes
617727617c update 'authors' 2016-12-16 21:24:48 +01:00
Simon Cruanes
478a1be535 Merge pull request #89 from dsheets/try-lock
threads/CCLock: add `try_with_lock` to wrap `Mutex.try_lock` (thansk @dsheets)
2016-12-16 21:24:22 +01:00
David Sheets
35859508c0 threads/CCLock: add try_with_lock to wrap Mutex.try_lock 2016-12-16 18:58:04 +00:00
Simon Cruanes
ef07decbac Revert "add Array.append" (already in stdlib Array)
This reverts commit cdb4ba5dbc.
2016-12-12 14:18:05 +01:00
Simon Cruanes
cdb4ba5dbc add Array.append 2016-12-07 16:20:13 +01:00
Simon Cruanes
85d0ff8f3f Merge pull request #87 from jpdeplaix/master
Add `CCMultiSet.remove_all` (thanks @jpdeplaix)
2016-12-06 19:22:12 +01:00
Jacques-Pascal Deplaix
5279304b40 Add CCMultiSet.remove_all 2016-12-06 18:29:50 +01:00
Simon Cruanes
d1e33cd135 document errors in CCIO (close #86) 2016-11-30 20:52:18 +01:00
Simon Cruanes
0b3e1cea77 update readme 2016-11-15 22:04:19 +01:00
Simon Cruanes
a8babbd941 add labels to CCList 2016-11-11 00:52:44 +01:00
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
8e2fd235bb add some code in benchnarks for array.sort 2016-11-04 21:55:01 +01:00
Simon Cruanes
6dd0894c1f update benchmarks 2016-11-04 21:10:54 +01:00