package spin
OCaml project generator
Install
Dune Dependency
Authors
Maintainers
Sources
opam-spin-0.8.2.tbz
sha256=4ca1b0cf7fccdbef2e2e8cba47a66333b2ec1535d45792f5d6ddb8d62824a9eb
sha512=fbb209d50f89f9d924626ba1d12b18f22acd7e3e457a5d371668d0bba3ef8e03fb3d0cac55f3e915f030ce77ecd1a48c471f7c83820f95b996b57cee6ff72e92
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)"
>