Simon Cruanes
eab2e1d33f
try to make the test_random uniformity test more robust
...
format / format (push) Has been cancelled
Build and Test / build (push) Has been cancelled
just increase the sample size.
2025-12-20 11:19:45 -05:00
Simon Cruanes
c72b60fd6f
do simplify the code a bit
...
closer to the original solution, too. Avoids a redundant `:= []`.
2025-12-20 11:15:15 -05:00
Simon Cruanes
15b421c54e
faster List.take_drop thanks to a trick by nojb
...
https://discuss.ocaml.org/t/efficient-implementation-of-list-split/17616/2
pretty cool.
2025-12-20 11:08:30 -05:00
Simon Cruanes
c1b13f1c7f
feat: add CCAtomic.update_cas
format / format (push) Has been cancelled
Build and Test / build (push) Has been cancelled
2025-12-08 13:41:29 -05:00
Simon Cruanes
7c8adbd9fc
move to ocamlformat 0.27, format code
2025-11-25 20:11:54 -05:00
Simon Cruanes
954ea61d22
doc + benchs
2025-11-25 20:04:47 -05:00
Simon Cruanes
f13fb6f471
feat pvec: add flat_map
2025-11-25 19:59:23 -05:00
Simon Cruanes
01402388e4
fix warning
2025-11-25 19:21:11 -05:00
István Donkó
14ad490c7e
fix: insert missing symbol into range doc comments
Build and Test / build (push) Has been cancelled
Build and Test / format (push) Has been cancelled
2025-10-27 12:03:46 -04:00
Simon Cruanes
99dba20fa6
prepare for 3.16
Build and Test / build (push) Has been cancelled
Build and Test / format (push) Has been cancelled
2025-05-27 09:22:31 -04:00
Simon Cruanes
f934db1e9c
fix: compat with OCaml 5.4
...
Build and Test / build (push) Waiting to run
Build and Test / format (push) Waiting to run
close #477
2025-05-26 23:44:02 -04:00
Simon Cruanes
14ad8c1f2a
format
Build and Test / build (push) Has been cancelled
Build and Test / format (push) Has been cancelled
2025-05-06 22:24:04 -04:00
Simon Cruanes
0ff9614520
feat: add containers.leb128 library
...
adapted from pbrt
2025-05-06 21:53:26 -04:00
Simon Cruanes
ab7d0fcc09
fix: oob(!!) in CCHash.bytes
Build and Test / build (push) Waiting to run
Build and Test / format (push) Waiting to run
2025-05-06 10:01:31 -04:00
Simon Cruanes
4613aafb30
feat: add CCFun.with_return
Build and Test / build (push) Has been cancelled
Build and Test / format (push) Has been cancelled
2025-02-07 16:57:56 -05:00
Adlertz, Niclas
4294dc7ca3
Add square brackets in comment for CCList.return
Build and Test / build (push) Has been cancelled
Build and Test / format (push) Has been cancelled
2025-01-28 22:19:11 -05:00
Alexander
2dcaa12fb7
Fixed docstring typo.
2025-01-04 11:19:57 -05:00
Alexander
b95e2de65b
Added functions to the Char module to check common character properties.
2025-01-04 09:18:51 -05:00
Alexander Lucas
8bb3801a52
Fixed formatting of CCString.rtake_while.
2025-01-01 10:22:42 -05:00
Alexander Lucas
d29ed7ee72
Renamed predicate parameter of take_while, rtake_while from p to f, aligining it with pre-existing drop_while.
2025-01-01 09:55:26 -05:00
Alexander Lucas
699b370220
Updated String and StringLabels interfaces to reflect take_while, rtake_while.
2025-01-01 09:34:06 -05:00
mobotsar
6c8569a7d9
Update CCString.mli to align parameter names in mli descriptions and implementations.
2025-01-01 00:48:58 -05:00
mobotsar
1498158a4f
Update CCString.mli for take_while, rtake_while
2025-01-01 00:47:17 -05:00
mobotsar
d8c00f96be
Update CCString.ml with take_while, rtake_while
...
Added two functions to the `CCString` module addressing #463 following the style of `CCString.drop_while` and `CCString.rdrop_while`. Corresponding `CCString.mli` changes to follow.
2025-01-01 00:35:55 -05:00
mobotsar
2e8d70f073
Update CCEither.mli fixing type in docstring
...
Changed "form OCaml 4.12" to "from OCaml 4.12".
2024-12-31 22:25:55 -05:00
Simon Cruanes
2fda76a5f7
factor implem for Vec.{find,find_i}
2024-12-13 00:19:05 -05:00
Simon Cruanes
cad41d70d6
ocamlformat
2024-12-13 00:17:53 -05:00
John Hester
b140a50c46
feat: add CCVector.findi
2024-12-13 00:15:27 -05:00
Simon Cruanes
e1de3da1e3
prepare for 3.15
2024-11-18 12:22:16 -05:00
Simon Cruanes
f02df05b35
additional fix for #454 on OCaml 4.10..4.12
2024-11-18 12:22:16 -05:00
Simon Cruanes
477e9cc7ca
remove warning in tests
2024-11-18 12:22:15 -05:00
Simon Cruanes
6dcaddb7c6
fixes and format
2024-11-15 11:02:38 -05:00
seprov
8d8f1d4145
Add split_result ( #459 )
...
add `CCList.split_result` (@seprov)
2024-11-15 11:01:20 -05:00
Fardale
9cfedad7ba
feat: add pretty printer to CCMultiSet
2024-11-05 18:25:51 +01:00
Simon Cruanes
9bef25b6e2
format
2024-10-02 12:31:53 -04:00
Simon Cruanes
3c530f47f4
Merge branch 'main' into linear-heap-building
2024-10-02 10:04:34 -04:00
Simon Cruanes
c959e396b3
fix #454 : work around a weird miscompilation
2024-09-17 12:51:07 -04:00
Simon Cruanes
6ab811f79b
prepare for 3.14
2024-09-10 08:47:46 -04:00
Simon Cruanes
9f8c2efe64
add missing @since tags
2024-09-03 13:12:12 -04:00
Simon Cruanes
07cfdb0d94
format
2024-09-03 13:11:57 -04:00
Benjamin Bellick
c6cb572230
and_p -> and_pred, or_p -> or_pred
2024-09-03 11:59:43 -05:00
Ben Bellick
1dc046c6e9
fix formatting
2024-08-24 10:53:59 -05:00
Ben Bellick
df0e442956
predicate combinators: and_p and or_p
2024-08-24 10:26:01 -05:00
Simon Cruanes
65fc920427
feat pp: add a bunch of extensions
...
thanks to @grayswandyr
2024-08-19 12:17:58 -04:00
Glen Mével
5d315503e1
CCHeap: building from almost-sorted sequences
2024-08-09 14:46:17 +02:00
Glen Mével
a24e1f7472
doc/CCHeap: fix English, improve wording, add sections
2024-07-31 17:50:35 +02:00
Glen Mével
fdfc806afb
CCHeap: avoid boxing in delete_one
2024-07-31 03:27:52 +02:00
Glen Mével
6c810eb83d
doc/CCHeap: document (==) for merge
2024-07-31 03:27:52 +02:00
Glen Mével
3f95fd44e6
perf/CCHeap: filter, delete_all in O(n) and ensure (==)
...
- for `delete_all` this is a bugfix
(physical equality was documented but not implemented)
- `delete_one` is unchanged, it already had complexity O(n)
and ensured physical equality
2024-07-31 03:27:49 +02:00
Glen Mével
806bb8c7bc
perf/CCHeap: heap building in O(n)
2024-07-31 02:19:33 +02:00