ppx_partialversion Documentation on ocaml.org
Syntax for a partial application of functions that omits any argument
This provides a syntax f e1 __ e3 that's means (fun x -> f e1 x e3),
except that e1 and e3 are evaluated just once.
This can be convenient in pipelines or to build arguments for List.map
or any places that need single-argument functions.
As a slight generalization, __.record_field and Sum_constructor __
allow shortening (fun x -> x.record_field) and (fun x -> Sum_constructor x).
| Tags | syntax ppx |
|---|---|
| Author | Valentin Gatien-Baron |
| License | ISC |
| Published | |
| Homepage | https://github.com/v-gb/ppx_partial |
| Issue Tracker | https://github.com/v-gb/ppx_partial/issues |
| Maintainer | Valentin Gatien-Baron |
| Dependencies |
|
| Source [http] | https://github.com/v-gb/ppx_partial/releases/download/1.0/ppx_partial-1.0.tbz sha256=98f5540ea530fc4aebb555e2063848bd6aca84eb72f7fb8cd8bfdc45c4650416 sha512=f5fc43aed73a92da585548aca41c2207989e4d2515a74a0a12698ae0e6dbdfa8d3f832b3b9f2e747c90531bce8a34b5c68d994ed3bfd38827d67c0c890091093 |
| Edit | https://github.com/ocaml/opam-repository/tree/master/packages/ppx_partial/ppx_partial.1.0/opam |
Required by


