package orgeat
Ocaml Random Generation of Arbitrary Types
Install
Dune Dependency
Authors
Maintainers
Sources
0.0.1.tar.gz
md5=591bfdcd7f0705efeb32b72015d96086
sha512=deb30610151e53b8dc9bd2eaebc88573be8a5c5192bfbc2d4fa2a02462fd2b6c7247974a46bd1ece5e0bf06589a4194db2ffab37d40d26ada23758a0c41d3e02
doc/src/orgeat/literal.ml.html
Source file literal.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
module Class = struct type t = C of string | D of t let rec compare a b = match (a, b) with | (C a, C b) -> String.compare a b | (D a, D b) -> compare a b | (C _, D _) -> 1 | (D _, C _) -> -1 let rec equal a b = match (a, b) with | (C a, C b) -> String.equal a b | (D a, D b) -> equal a b | _ -> false let rec to_string = function C x -> x | D x -> "∂" ^ to_string x let is_base = function C _ -> true | _ -> false let of_string x = C x let deriv x = D x end module Variable = struct include String let of_string x = x let to_string x = x let z = "z" end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>