module Example1:This module defines a type to do something.sig
..end
type('a, 'b)
t = private'a list
'a
: type of elements'b
: phantom type used to ...val double_if : bool -> ('a, 'b) t -> ('a, 'b) t
f b l
returns values according to the following rules:
b | result |
---|---|
true | s |
false | s @ s |
A thorough explanation of the definition is also available ...