[Swift-devel] iterate fails

Mihael Hategan hategan at mcs.anl.gov
Mon Sep 16 15:50:00 CDT 2013


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);
> ===
[...]




More information about the Swift-devel mailing list