jon.recoil.org

Module Alloc.Const

module Option : sig ... end
val is_max : 'a Axis.t -> 'a -> bool
val is_min : 'a Axis.t -> 'a -> bool
val diff : t -> t -> Option.t

diff a b returns None for axes where a and b match, and Some a0 for axes where a is a0 and b isn't.

val close_over : t -> Comonadic.Const.t

Similar to Alloc.close_over but for constants

val partial_apply : t -> Comonadic.Const.t

Similar to Alloc.partial_apply but for constants

val comonadic_to_monadic_min : Comonadic.Const.t -> Monadic.Const.t

Similar to comonadic_to_monadic_min but for constants

val print_axis : 'a Axis.t -> Mode_intf.Fmt.formatter -> 'a -> unit

Prints a constant on any axis.