package spin
OCaml project generator
Install
Dune Dependency
Authors
Maintainers
Sources
opam-spin-0.8.1.tbz
sha256=cd1ca43c7d3bb11be0b525642e57aa98e4d8250aea6c2fdb5c70b120449abdc1
sha512=0ff1e8886a49773d8ead3a21df1fb46697954fb43e875bd1ddc4cb95542fe0a767c556c432d78b47654a1f3d361800c234486e4cc237b9aa8d4df22e5a3a1ff9
doc/src/spin.std/string.ml.html
Source file string.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
include Stdlib.String let lsplit2_exn on s = let i = index s on in sub s 0 i, sub s (i + 1) (length s - i - 1) let lsplit2 on s = try Some (lsplit2_exn s on) with Not_found -> None let prefix s len = try sub s 0 len with Invalid_argument _ -> "" let suffix s len = try sub s (length s - len) len with Invalid_argument _ -> "" let drop_prefix s len = sub s len (length s - len) let drop_suffix s len = sub s 0 (length s - len)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>