summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Campbell2017-10-25 15:45:29 +0100
committerBrian Campbell2017-10-25 15:45:29 +0100
commitbe87b5725853038123f2d6b5a04eb159a46f865c (patch)
tree850ec115271520c7627d9fb7adb00ab902d6723d /src
parent6bc59424449c6391224487a7435513cf18d08946 (diff)
List.cons is too new
Diffstat (limited to 'src')
-rw-r--r--src/monomorphise.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/monomorphise.ml b/src/monomorphise.ml
index 42546ae0..2c3dda0e 100644
--- a/src/monomorphise.ml
+++ b/src/monomorphise.ml
@@ -163,14 +163,14 @@ let rec cross' = function
| [] -> [[]]
| (h::t) ->
let t' = cross' t in
- List.concat (List.map (fun x -> List.map (List.cons x) t') h)
+ List.concat (List.map (fun x -> List.map (fun l -> x::l) t') h)
let rec cross'' = function
| [] -> [[]]
- | (k,None)::t -> List.map (List.cons (k,None)) (cross'' t)
+ | (k,None)::t -> List.map (fun l -> (k,None)::l) (cross'' t)
| (k,Some h)::t ->
let t' = cross'' t in
- List.concat (List.map (fun x -> List.map (List.cons (k,Some x)) t') h)
+ List.concat (List.map (fun x -> List.map (fun l -> (k,Some x)::l) t') h)
let kidset_bigunion = function
| [] -> KidSet.empty