File: stdcompat__stream_s.mli.in

package info (click to toggle)
ocaml-stdcompat 14-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,152 kB
  • sloc: ml: 22,329; makefile: 211; sh: 120
file content (80 lines) | stat: -rw-r--r-- 1,724 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
module type S = sig
type 'a t = 'a Stream.t
(** Alias for {!Stream.t} *)

exception Failure 
(** Alias for {!Stream.Failure} *)

exception Error of string 
(** Alias for {!Stream.Error} *)

@BEGIN_FROM_4_02_0@
val of_bytes : bytes -> char t
@END_FROM_4_02_0@
@BEGIN_BEFORE_4_02_0@
val of_bytes : Stdcompat__init.bytes -> char t
@END_BEFORE_4_02_0@
(** @since 4.02.0: val of_bytes : bytes -> char t
 *)

val from : (int -> 'a option) -> 'a t
(** Alias for {!Stream.from} *)

val of_list : 'a list -> 'a t
(** Alias for {!Stream.of_list} *)

val of_string : string -> char t
(** Alias for {!Stream.of_string} *)

val of_channel : in_channel -> char t
(** Alias for {!Stream.of_channel} *)

val iter : ('a -> unit) -> 'a t -> unit
(** Alias for {!Stream.iter} *)

val next : 'a t -> 'a
(** Alias for {!Stream.next} *)

val empty : 'a t -> unit
(** Alias for {!Stream.empty} *)

val peek : 'a t -> 'a option
(** Alias for {!Stream.peek} *)

val junk : 'a t -> unit
(** Alias for {!Stream.junk} *)

val count : 'a t -> int
(** Alias for {!Stream.count} *)

val npeek : int -> 'a t -> 'a list
(** Alias for {!Stream.npeek} *)

val iapp : 'a t -> 'a t -> 'a t
(** Alias for {!Stream.iapp} *)

val icons : 'a -> 'a t -> 'a t
(** Alias for {!Stream.icons} *)

val ising : 'a -> 'a t
(** Alias for {!Stream.ising} *)

val lapp : (unit -> 'a t) -> 'a t -> 'a t
(** Alias for {!Stream.lapp} *)

val lcons : (unit -> 'a) -> 'a t -> 'a t
(** Alias for {!Stream.lcons} *)

val lsing : (unit -> 'a) -> 'a t
(** Alias for {!Stream.lsing} *)

val sempty : 'a t
(** Alias for {!Stream.sempty} *)

val slazy : (unit -> 'a t) -> 'a t
(** Alias for {!Stream.slazy} *)

val dump : ('a -> unit) -> 'a t -> unit
(** Alias for {!Stream.dump} *)

end