[Swift-user] example of @length
Heather Stoller
heather.stoller at gmail.com
Wed May 2 12:47:53 CDT 2012
Hello,
Does anyone have an example of how to use @length?
I have tried a few things, most recently
@length(inputfiles)
without success.
Cheers!
Heather
complete script below.
type file;
file inputfiles1[] <ext;exec="mapper.py",filename=@arg("in1")>;
file inputfiles2[] <ext;exec="mapper.py",filename=@arg("in2")>;
app (file o) cat (file i1, file i2)
{
cat @i1 @i2 stdout=@o;
}
foreach j in [0:@length(inputfiles1)] {
file c<concurrent_mapper;
prefix="map.",
suffix=".out">;
c = cat(inputfiles1[j], inputfiles2[j]);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20120502/d5c9804e/attachment.html>
More information about the Swift-user
mailing list