Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 197 Bytes

of_item.md

File metadata and controls

14 lines (11 loc) · 197 Bytes

Stream.of_item : 'a -> 'a Stream.t

let unsubscribe = "hello"
  |> Stream.of_item
  |> Stream.subscribe print_endline

let _ = print_endline "pass"

(*
  > "hello"
  > "pass"
*)