caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* camlp4 + array
@ 2009-10-04 17:08 Anastasia Gornostaeva
  2009-10-04 17:44 ` [Caml-list] " blue storm
  0 siblings, 1 reply; 2+ messages in thread
From: Anastasia Gornostaeva @ 2009-10-04 17:08 UTC (permalink / raw)
  To: caml-list

Hello.

The code

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

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

ermine 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-04 17:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-04 17:08 camlp4 + array Anastasia Gornostaeva
2009-10-04 17:44 ` [Caml-list] " blue storm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).