Commit graph

607 commits

Author SHA1 Message Date
Fardale
bf8db5dcff feat(opt): add bind 2020-01-06 16:15:52 +01:00
Fardale
1dcc529623 feat(float): add of_string_opt 2020-01-06 16:15:05 +01:00
Simon Cruanes
5126973173 prepare for 2.8 2019-12-14 17:50:35 -06:00
Simon Cruanes
ab494fb753 fix: compat issue 2019-12-14 17:50:35 -06:00
Simon Cruanes
7d9d9d45b8 feat(list): add indexed functions and fold_on_map
close #222
2019-12-14 16:52:35 -06:00
Simon Cruanes
138047ef11 feat: add {to,of,add}_{iter,std_seq} where relevant; deprecations
deprecate `seq` named functions (for `iter`)
deprecate klist functions (for `std_seq`)

close #231
2019-12-14 16:29:07 -06:00
Simon Cruanes
faeae964fc fix(pp): improve printing of hashtables
close #243
2019-12-14 14:25:38 -06:00
Simon Cruanes
c92a09ac9d add more deprecation comments 2019-12-14 14:04:09 -06:00
Simon Cruanes
af4662e962 deprecate CCVector.fill_empty_slots_with 2019-12-14 13:57:56 -06:00
Fardale
0b759c67b8 CCVector: update the doc 2019-12-14 13:44:57 -06:00
Fardale
27eb874523 CCVector: resize_ take the elt as argument
It is safer to have the check on the size of the underlying array
close to access of the first element.
2019-12-14 13:44:57 -06:00
Simon Cruanes
b69cc33c26 perf: make let-op functors inline, hopefully 2019-12-14 12:08:48 -06:00
Simon Cruanes
9b76f277f7 more fixes for the shims 2019-12-14 12:08:48 -06:00
Simon Cruanes
616c077880 fix: proper shims for CCArrayLabel too 2019-12-14 12:08:48 -06:00
Simon Cruanes
d5e5b43e1f fix shims for arrays 2019-12-14 12:08:48 -06:00
Simon Cruanes
74e7d87872 fix: backport a pseudo Floatarray pre 4.06 2019-12-14 12:08:48 -06:00
Simon Cruanes
62672fdbd2 fix test 2019-12-14 12:08:48 -06:00
Simon Cruanes
b2d9e69042 feat: put the let operators inside the Infix modules when relevant 2019-12-14 12:08:48 -06:00
Simon Cruanes
bf0227d404 feat: on 4.08, support let operators
close #276
2019-12-14 12:08:48 -06:00
Simon Cruanes
037a0ef922 Merge branch 'wip-ccvec' 2019-12-14 12:08:33 -06:00
Fardale
bbdcd93417 wip: improved gc behavior for ccvector 2019-12-14 11:50:47 -06:00
Fardale
1d589cf4ac use array_is_empty_ instead of direct check 2019-12-14 11:50:47 -06:00
Simon Cruanes
5cb715a206 fix: properly alias to CCChar in containers.ml
close #281
2019-12-14 11:42:19 -06:00
Simon Cruanes
70bd7f1e97 fix: move with_temp_dir from CCIO to CCUnix
it depends on unix, which is a deal breaker for core
2019-12-11 09:46:21 -06:00
Simon Cruanes
28f8872ef5 feat: add monoid_product to Array and Vector 2019-12-10 21:38:07 -06:00
Simon Cruanes
1b5b23a8f1 remove unlabel, remove all traces of Result 2019-12-10 20:48:38 -06:00
Simon Cruanes
30251e9426 bump minimum version of OCaml to 4.03, drop deps {result,uchar}
close #274
2019-12-10 19:56:54 -06:00
Simon Cruanes
858616606b add CCVector.shrink_to_fit to limit memory usage 2019-12-10 16:39:35 -06:00
Simon Cruanes
1239960c42 wip: improved gc behavior for ccvector 2019-12-10 16:39:35 -06:00
Simon Cruanes
236a0c43ce feat: add CCVector.clear_and_reset 2019-12-10 16:39:35 -06:00
Simon Cruanes
76bec991a2 feat(io): add with_temp_dir function 2019-12-03 12:49:22 -06:00
Simon Cruanes
7d1862a501 wip: add to_std_seq
see #254
2019-11-20 17:50:40 -06:00
Simon Cruanes
78ef007b77 deprecate CCOpt.to_seq, provide to_iter instead 2019-11-20 17:50:22 -06:00
Simon Cruanes
bd4e4d311d add CCOpt.value to improve compat with Stdlib.Option 2019-11-20 17:49:49 -06:00
Fardale
3804dbff86 add CCVector.mapi 2019-11-17 10:43:18 -06:00
Simon Cruanes
7cefde490b prepare for 2.7
remove mdx
2019-11-12 08:49:33 -06:00
Simon Cruanes
2241a25d9e CCIO: use attributes for warnings 2019-11-11 20:01:21 -06:00
Simon Cruanes
27fb393698 feat(CCIO): add _gen suffixes to some functions
deprecate the previous versions
see #261
2019-11-11 19:55:43 -06:00
Simon Cruanes
edcd97a7ed doc(IO): explain lifetime of gen a bit 2019-11-08 11:27:01 -06:00
Simon Cruanes
11d081a612 doc: add pointer to the repo for gen 2019-11-08 11:17:37 -06:00
Simon Cruanes
b3ce398624 fix: remove dep from vec to list 2019-10-30 14:28:17 -05:00
Fardale
0dafceb708 Adding to_string (#270)
* add `CCArray.to_string`
* add `CCArrayLabels.to_string`
* add `CCList.to_string`
* add `CCListLabels.to_string`
* add `CCChar.to_string`
* add `CCPair.to_string`
* add `CCHeap.to_string`
* add `CCSet.to_string`
* add `CCVector.to_string`
2019-10-30 14:26:52 -05:00
Simon Cruanes
70d7dd234d add CCBool.{to,of}_int 2019-10-21 10:34:26 -05:00
Simon Cruanes
df9bbb8746 add Result.flatten_l to turn a list of results into a result of list 2019-10-16 12:22:55 -05:00
Simon Cruanes
0c23e3ba88
Merge pull request #266 from c-cube/wip-264-improve
improve on #264
2019-10-11 17:44:42 -05:00
Simon Cruanes
b25cf1ea00 fix: forgot const 2019-10-11 17:05:34 -05:00
Simon Cruanes
ab5b3aa6af refactor: remove stdlib's code, simple reimplementation of Stdlib.Fun
keep the whole codebase BSD.
2019-10-11 16:59:22 -05:00
Simon Cruanes
d63bdbc0eb fix syntax error in ArrayLabels.mli 2019-10-11 16:29:50 -05:00
Simon Cruanes
6d02200429 fix syntax error in Array.mli 2019-10-11 16:29:50 -05:00
narimiran
3658864a5a add CCArray.Infix 2019-10-11 16:29:50 -05:00