package odoc
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
OCaml Documentation Generator
Install
dune-project
Dependency
Authors
Maintainers
Sources
odoc-3.2.1.tbz
sha256=d45eb125514839fd9ac27702bb4938d1b4f3b6978e9b16ab9673ea067245affc
sha512=3555386b4770a7caa8ec903683bde5ecdc41d5e57ffaee617d5da225c747bbd1e9c1d2677f4df97e96bbdfc69f580ea83b1b92b933ea40a436a658788b677bbc
doc/src/odoc.odoc_utils/odoc_list.ml.html
Source file odoc_list.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 42 43 44 45 46include List let rec concat_map_sep ~sep ~f = function | [] -> [] | [ x ] -> f x | x :: xs -> let hd = f x in let tl = concat_map_sep ~sep ~f xs in hd @ (sep :: tl) (* Since 4.10 *) let concat_map f l = let rec aux f acc = function | [] -> rev acc | x :: l -> let xs = f x in aux f (rev_append xs acc) l in aux f [] l (** @raise Failure if the list is empty. *) let rec last = function | [] -> failwith "Odoc_utils.List.last" | [ x ] -> x | _ :: tl -> last tl (* Since 4.10. Copied ocaml/ocaml *) let rec find_map f = function | [] -> None | x :: l -> ( match f x with Some _ as result -> result | None -> find_map f l) (* Since 5.1 *) let is_empty = function [] -> true | _ :: _ -> false let rec skip_until ~p = function | [] -> [] | h :: t -> if p h then t else skip_until ~p t let split_at ~f lst = let rec loop acc = function | hd :: _ as rest when f hd -> (List.rev acc, rest) | [] -> (List.rev acc, []) | hd :: tl -> loop (hd :: acc) tl in loop [] lst
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>