package ppx_sexp_conv

  1. Overview
  2. Docs
[@@deriving] plugin to generate S-expression conversion functions

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.1.tar.gz
md5=acbe8a2727a29c8f2fa8da42046f5861
sha512=036582cbcd49aad0737bbbdf5f680192e55a9f3051c8dece439a6c6ea989b59077c88130d833b01a38d990e563f7dde9f5be7e1cd0ffaaf59bd913d6fbd63bb3

doc/src/ppx_sexp_conv.expander/labeled_tuple.ml.html

Source file labeled_tuple.ml

1
2
3
4
5
6
7
8
open! Base

let is_valid alist = List.exists alist ~f:(fun (option, _) -> Option.is_some option)

let atom_of_label = function
  | None -> "."
  | Some string -> "~" ^ string
;;
OCaml

Innovation. Community. Security.