package spin
OCaml project generator
Install
Dune Dependency
Authors
Maintainers
Sources
spin-0.8.0.tbz
sha256=2d612f7a55a2cd71177e96c6a5a5d3a7c258b19b4eef9cf994a24b1ec77c3764
sha512=1b46b047c6f3d3ed38ba38912680e2af802517f30d27ae42ceca4fa1b3954d28ba6922535a322230a57e466f009df499823b39a325f476a9bf938fa2e0cd8f4a
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)"
>