package alg_structs
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Module Option.MakeSource
Make (S) is a semigroup where op a b is...
Noneif bothaandbareNoneSome vif only one ofaorbareSome vSome (S.op a' b')ifbisSome b'andaisSome a'
This enables chains of associations over optional values that preserves any values that may be present. E.g.,
# module O = Semigroup.Option.Make ((val Semigroup.make ( * )));;
module O :
sig
type t = int option
val op : t -> t -> t
val ( * ) : t -> t -> t
val concat : t NonEmptyList.t -> t
end
# O.(Some 2 * None * None * Some 2);;
- : O.t = Option.Some 4Parameters
Signature
concat xs is the concatenation of all elements of xs into a single value using op.
This is equivalent to List.fold_right op (NonEmptyList.tl xs) (NonEmptyList.hd xs).
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page