Commit graph

22 commits

Author SHA1 Message Date
Fardale
2aa8416b1c CCFun(cleanup): align CCFun.compose with the stdlib
Conditionally define CCFun.compose and align its definition with the
stdlib. The arguments are now swapped.
2024-12-25 15:10:40 +01: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
Nicola Mometto
6a70c57253 feat(CCFun): add (|||>) 2024-04-11 14:54:07 +01:00
Nicola Mometto
2a21181580 feat(CCFun): add (||>) 2024-04-11 14:51:55 +01:00
Simon Cruanes
492484a9a2
cleanup: remove stubs for code always present on 4.08 2023-07-10 11:55:43 -04:00
Simon Cruanes
1a23731730
remove conditional over OCaml >= 4.08
in particular, all the let-ops are now unconditional!
2023-06-24 15:22:21 -04:00
Simon Cruanes
bbfbe0f770
fix many, many warnings 2023-06-06 22:16:20 -04:00
Simon Cruanes
735729c329
add CCFun.(let@) (if OCaml >= 4.08) 2023-02-07 12:23:27 -05:00
Simon Cruanes
10865eaced reformat 2022-07-04 13:36:06 -04:00
Simon Cruanes
0bee9bdd55
wip: remove tests from src/ 2022-06-30 22:28:07 -04:00
Simon Cruanes
7ae113b6dc
compat with merlin by using [@@@ifge 4.12] instead of [%IFGE 4.12] 2022-02-16 23:14:26 -05:00
Simon Cruanes
bc6c8947b1
start using preprocessor to remove some shim modules 2022-02-16 23:01:00 -05:00
Kye W. Shi
06b795c604 CCFun: add infix tests 2020-06-19 20:17:30 -05:00
Kye W. Shi
a03b6e68e3 CCFun: put infix operators in Infix module 2020-06-19 20:17:30 -05:00
Christopher Zimmermann
5fcd1a506e add shim for backward-compatibility Fun module 2019-10-07 13:42:48 +02:00
Christopher Zimmermann
858af75ee8 Make use new Stdlib.Fun to extend / replace CCFun 2019-10-07 12:28:22 +02:00
Simon Cruanes
96ed8a37ab feat: introduce shim modules for 4.08 compat
- also make `unlabel` an explicit operation
- use `Stdlib` instead of `Pervasives`
- remove some warnings in Format
2019-06-14 18:26:14 -05:00
Etienne Millon
f1adbcf2f3 Add CCFun.iterate
This adds a new `CCFun.iterate` function that computes the nth-iterate
of a function. That is, that function composed with itself n times.
2018-02-14 15:39:08 +01:00
Simon Cruanes
df07cf5bb2 remove all uses of cppo 2017-12-24 16:43:17 +01:00
Renamed from src/core/CCFun.cppo.ml (Browse further)