We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dc5828 commit ae1bd80Copy full SHA for ae1bd80
quickCheck.ml
@@ -47,26 +47,6 @@ module List = struct
47
let group xs = groupBy (=) xs
48
end
49
50
-module List = struct
51
- include List
52
- let rec span : ('a -> bool) -> 'a list -> 'a list * 'a list =
53
- fun p -> function
54
- [] -> [],[]
55
- | x::xs when p x ->
56
- let ys,zs = span p xs in
57
- (x::ys,zs)
58
- | xs -> [],xs
59
-
60
- let rec groupBy : ('a -> 'a -> bool) -> 'a list -> 'a list list =
61
62
- [] -> []
63
- | x::xs ->
64
- let ys,zs = span (p x) xs in
65
- (x::ys) :: groupBy p zs
66
67
- let group xs = groupBy (=) xs
68
-end
69
70
type 'a gen = Gen of (int -> 'a)
71
type pretty_str = Format.formatter -> unit -> unit
72
0 commit comments