package containers-data

  1. Overview
  2. Docs
A set of advanced datatypes for containers

Install

Dune Dependency

Authors

Maintainers

Sources

v3.6.1.tar.gz
md5=efbef89f1e3460225c7d03e3ae2af62e
sha512=e3b43af275a660c46e7ded32c1a6e51396589a25af7b64187d044bcbfd05f5143f9024c4655921c606b86b99d0ab73e81c99dc75b23d52601682491c1b6abc9f

doc/src/containers-data.top/containers_data_top.ml.html

Source file containers_data_top.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

(* This file is free software, part of containers. See file "license" for more details. *)

type 'a printer = Format.formatter -> 'a -> unit

let eval_exn str =
  let lexbuf = Lexing.from_string str in
  let phrase = !Toploop.parse_toplevel_phrase lexbuf in
  Toploop.execute_phrase false Format.err_formatter phrase

let install_printer s =
  try
    ignore (eval_exn ("#install_printer " ^ s ^ " ;; "))
  with _ ->
    Printexc.print_backtrace stderr;
    ()
let install_printers = List.iter install_printer

let () =
  install_printers
    [ "CCBV.pp";
      "CCDeque.pp";
      "CCFQueue.pp";
      "CCFun_vec.pp";
      "CCIntMap.pp";
      "CCPersistentArray.pp";
    ]
OCaml

Innovation. Community. Security.