package core
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Industrial strength alternative to OCaml's standard library
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.17.2.tar.gz
md5=6f07bb82d51d695ac4e76c8ac7f55902
sha512=c3c401fded188f74cf7ce6b1b07e7bc59fe18441eec602d174bfd48db13370fda986dd9f66d4ff9c26254ea2b381e7c51b366df9d2dfbf66fda281b4def3166a
doc/src/core/printf.ml.html
Source file printf.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 28 29 30 31 32 33 34 35 36 37 38 39 40 41(** This module extends {{!Base.Printf}[Base.Printf]}. *) open! Import include Base.Printf (** @open *) let eprintf = Stdio.Out_channel.eprintf let fprintf = Stdio.Out_channel.fprintf let kfprintf = Stdio.Out_channel.kfprintf let printf = Stdio.Out_channel.printf (** print to stderr; exit 1 *) let exitf fmt = ksprintf (fun s () -> eprintf "%s\n%!" s; exit 1) fmt ;; type printf = { printf : 'a. ('a, Buffer.t, unit) format -> 'a } let collect_to_string f = let buf = Buffer.create 64 in let done_ = ref false in let printf fmt = kbprintf (fun buf -> if !done_ then ( Buffer.reset buf; raise_s [%message "[printf] used after [collect_to_string] returned"])) buf fmt in f { printf }; done_ := true; let output = Buffer.contents buf in Buffer.reset buf; output ;;
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>