package algaeff
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Effects for reading immutable environments.
module R = Algaeff.Reader.Make (Int)
let () = R.run ~env:42 @@ fun () ->
(* this will print out 42 *)
print_int (R.read ());
(* this will print out 43 *)
R.scope (fun i -> i + 1) (fun () -> print_int (R.read ()));
(* this will print out 42 again *)
print_int (R.read ())
module type S = sig ... end
Signatures of read effects.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>