[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Anastasia Gornostaeva <ermine@e...> |
| Subject: | camlp4 + array |
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