<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2009/10/d364f92bdb97360d8449f027692a7ae1"
  from="Anastasia Gornostaeva &lt;ermine@e...&gt;"
  author="Anastasia Gornostaeva"
  date="2009-10-04T17:08:27"
  subject="camlp4 + array"
  prev="2009/10/a9d8d6655d6b4fe94cebe2d9aab8536a"
  next="2009/10/5857935b784b82211e89cc752dc2ad59"
  next-in-thread="2009/10/5857935b784b82211e89cc752dc2ad59"
  prev-thread="2009/10/1d7452042a610a8dbce7b15598651158"
  next-thread="2009/10/1fa1f44e18c36509d250514c26be5736"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="camlp4 + array">
<msg 
  url="2009/10/d364f92bdb97360d8449f027692a7ae1"
  from="Anastasia Gornostaeva &lt;ermine@e...&gt;"
  author="Anastasia Gornostaeva"
  date="2009-10-04T17:08:27"
  subject="camlp4 + array">
<msg 
  url="2009/10/5857935b784b82211e89cc752dc2ad59"
  from="blue storm &lt;bluestorm.dylc@g...&gt;"
  author="blue storm"
  date="2009-10-04T17:45:00"
  subject="Re: [Caml-list] camlp4 + array">
</msg>
</msg>
</thread>

<contents>
Hello.

The code

       let pl =
            Array.fold_left (fun ls l -&gt; &lt;:expr&lt; $ls$; $`int:l$ &gt;&gt;)
            &lt;:expr&lt;&gt;&gt; some_array
          in
            &lt;:expr&lt; [| $pl$ |] &gt;&gt;

produces somelike [| (1; 2; 3; 4) |], i.e the pl in () brackets.
How should I do write this code properly?

ermine 

</contents>

</message>

