<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8,7 +8,7 @@ let shuffle_seq size =
             let idx = Random.int (len - pos) in
             let cur = arr.(pos + idx) in
             arr.(pos + idx) &lt;- arr.(pos);
-            Seq.Cons(cur, lazy (_shuffle arr len (pos + 1)))
+            Seq.Cons(lazy cur, lazy (_shuffle arr len (pos + 1)))
         else
             Seq.Nil
     in</diff>
      <filename>ex/tsp.ml</filename>
    </modified>
    <modified>
      <diff>@@ -4,21 +4,21 @@ exception EmptySeq
 
 type 'a t =
     | Nil
-    | Cons of 'a * 'a t lazy_t
+    | Cons of 'a lazy_t * 'a t lazy_t
 
 let head seq =
     match seq with
     | Nil -&gt;
         None
     | Cons(h, q) -&gt;
-        Some h
+        Some (Lazy.force h)
 
 let head_exn seq =
     match seq with
     | Nil -&gt;
         raise EmptySeq
     | Cons(h, q) -&gt;
-        h
+        Lazy.force h
 
 let tail seq =
     match seq with
@@ -33,7 +33,7 @@ let tail seq =
 let rec of_list lst =
     match lst with
     | h :: q -&gt;
-        Cons(h, lazy (of_list q))
+        Cons(lazy h, lazy (of_list q))
     | [] -&gt;
         Nil
 
@@ -48,7 +48,7 @@ let to_list seq =
     _to_list seq []
 
 let rec of_serie fn n0 =
-    Cons(n0, lazy (of_serie fn (fn n0)))
+    Cons(lazy n0, lazy (of_serie fn (fn n0)))
 
 
 (* Manipulation *)
@@ -59,7 +59,7 @@ let rec map fn seq =
     | None -&gt;
         Nil
     | Some e -&gt;
-        Cons(fn e, lazy (map fn (tail seq)))
+        Cons(lazy (fn e), lazy (map fn (tail seq)))
 
 let rec gmap_exn fn seqs =
     match seqs with
@@ -67,7 +67,7 @@ let rec gmap_exn fn seqs =
         Nil
     | _ -&gt;
         let heads = List.map head_exn seqs in
-        Cons(fn heads, lazy (gmap_exn fn (List.map tail seqs)))
+        Cons(lazy (fn heads), lazy (gmap_exn fn (List.map tail seqs)))
 
 let rec iter fn seq =
     match head seq with
@@ -84,7 +84,7 @@ let rec filter pred seq =
     | Some h -&gt;
         if pred h
         then
-            Cons(h, lazy (filter pred (tail seq) ))
+            Cons(lazy h, lazy (filter pred (tail seq) ))
         else
             filter pred (tail seq)
 
@@ -96,7 +96,7 @@ let rec concat seqs = (* TODO this is concat_list; can have concat_seq *)
         | None -&gt;
             concat a
         | Some e -&gt;
-            Cons(e, lazy (concat ((tail h) :: a)))
+            Cons(lazy e, lazy (concat ((tail h) :: a)))
         end
     | [] -&gt;
         Nil</diff>
      <filename>seq.ml</filename>
    </modified>
    <modified>
      <diff>@@ -29,9 +29,9 @@ let rec _cmp_to_list_cont seq lst =
 
 let _ = Tests.register &quot;Base: head, tail&quot; (fun () -&gt;
     let s = Seq.Cons(
-        1,
+        lazy 1,
         lazy (Seq.Cons(
-            2,
+            lazy 2,
             lazy Seq.Nil
         ))
     ) in</diff>
      <filename>test/seqTest.ml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8b9c5c2a4f44ed581827f532ff9b0cedcc504971</id>
    </parent>
  </parents>
  <author>
    <name>Ludovic Coquelle</name>
    <email>lcoquelle@gmail.com</email>
  </author>
  <url>http://github.com/khigia/ocaml-anneal/commit/7c21b8b3d7e1c9e4b51fa9f37c0cfb3b9ba80534</url>
  <id>7c21b8b3d7e1c9e4b51fa9f37c0cfb3b9ba80534</id>
  <committed-date>2008-06-16T17:37:36-07:00</committed-date>
  <authored-date>2008-06-16T17:37:36-07:00</authored-date>
  <message>Fix the completely lazy Seq module of previous commit.</message>
  <tree>97e5f282068a9c84989a5acbdd96c5eb41caadab</tree>
  <committer>
    <name>Ludovic Coquelle</name>
    <email>lcoquelle@gmail.com</email>
  </committer>
</commit>
