package ocamlformat-mlx-lib
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
OCaml .mlx Code Formatter
Install
dune-project
Dependency
Authors
Maintainers
Sources
ocamlformat-mlx-0.28.1.1.tbz
sha256=087d7256a52808715875814d8bccf9172f97e933b398fc8d29ec40dc89fa9e0e
sha512=809b690e6c21110f81918dfdb1b5efecd185a4f26eadb2bb3aa6eb8069db20989e8797650b22a2207b6b26abe97db357c2dc6056943a3a4f630c4e1a0ebb4f1b
doc/src/ocamlformat-mlx-lib.odoc_parser/compat.ml.html
Source file compat.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 32module Option = struct type 'a t = 'a option = None | Some of 'a let is_some = function None -> false | Some _ -> true let value ~default = function None -> default | Some x -> x let join_list l = let rec loop acc = function | [] -> Some (List.rev acc) | Some a :: q -> loop (a :: acc) q | None :: _ -> None in loop [] l end module Char = struct include Char let equal (x : char) y = x = y end module String = struct include String let for_all f str = let rec aux i = if i >= String.length str then true else if f (String.get str i) then aux (i + 1) else false in aux 0 end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>