[Swift-devel] iterate fails

Ketan Maheshwari ketancmaheshwari at gmail.com
Mon Sep 16 16:06:34 CDT 2013


Works now, thanks!


On Mon, Sep 16, 2013 at 3:50 PM, Mihael Hategan <hategan at mcs.anl.gov> wrote:

> Should work now (r7072).
>
> Mihael
>
> On Mon, 2013-09-16 at 10:49 -0500, Ketan Maheshwari wrote:
> > Hi,
> >
> > I am trying a catsn example with foreach replaced by iterate as follows:
> >
> > ===
> > type file;
> >
> > app (file o) cat (file i) {
> >   cat @i stdout=@o;
> > }
> > file out[]<simple_mapper; location="outdir", prefix="f.",suffix=".out">;
> >
> > string d=@arg("data");
> >
> > #foreach j in [1:1000] {
> > iterate j {
> >  file data<single_file_mapper; file=d>;
> >  out[j] = cat(data);
> > } until (j==3);
> > ===
> [...]
>
>


-- 
Ketan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20130916/f1f160b8/attachment.html>


More information about the Swift-devel mailing list