behavior.mli 388 B

123456789101112131415
  1. type +'a t
  2. val return : 'a -> 'a t
  3. val const : 'a -> 'a t
  4. val map : 'a t -> f:('a -> 'b) -> 'b t
  5. val map2 : 'a t -> 'b t -> f:('a -> 'b -> 'c) -> 'c t
  6. val both : 'a t -> 'b t -> ('a * 'b) t
  7. val ( >>| ) : 'a t -> ('a -> 'b) -> 'b t
  8. val of_source : Source.t -> Source.value t
  9. val time : int t
  10. val dependencies : 'a t -> Source.t Base.Sequence.t
  11. val sample : 'a t -> Source.State.t -> 'a