[Swift-commit] r6088 - SwiftTutorials/UofC_2012-11-27/scripts
wilde at ci.uchicago.edu
wilde at ci.uchicago.edu
Tue Nov 27 11:46:44 CST 2012
Author: wilde
Date: 2012-11-27 11:46:44 -0600 (Tue, 27 Nov 2012)
New Revision: 6088
Modified:
SwiftTutorials/UofC_2012-11-27/scripts/script04.swift
SwiftTutorials/UofC_2012-11-27/scripts/script05.swift
Log:
adjust scripts 4 and 5.
Modified: SwiftTutorials/UofC_2012-11-27/scripts/script04.swift
===================================================================
--- SwiftTutorials/UofC_2012-11-27/scripts/script04.swift 2012-11-27 17:36:20 UTC (rev 6087)
+++ SwiftTutorials/UofC_2012-11-27/scripts/script04.swift 2012-11-27 17:46:44 UTC (rev 6088)
@@ -10,16 +10,16 @@
filterinfo @i @o;
}
-app (file o) reduce (file i[])
- reduceinfo @filenames(i)
-}
-
file filtered[];
foreach i in [0:24] {
- string fname = @strcat("info.",i,".txt");
+ string fname = @strcat("output/info.",i,".txt");
file info <single_file_mapper; file=fname>;
info = getinfo();
- filtered[i] = filterinfo(info);
+ // replace: filtered[i] = filter(info);
+ // with:
+ string filfname = ???
+ filfname =
+ filtered[i] =
}
Modified: SwiftTutorials/UofC_2012-11-27/scripts/script05.swift
===================================================================
--- SwiftTutorials/UofC_2012-11-27/scripts/script05.swift 2012-11-27 17:36:20 UTC (rev 6087)
+++ SwiftTutorials/UofC_2012-11-27/scripts/script05.swift 2012-11-27 17:46:44 UTC (rev 6088)
@@ -18,13 +18,13 @@
file filtered[];
foreach i in [0:24] {
- string fname = @strcat("info.",i,".txt");
+ string fname = @strcat("output/info.",i,".txt");
file info <single_file_mapper; file=fname>;
info = getinfo();
filtered[i] = filter(info);
}
-file sum<"sum.data">;
+file sum<"output/sum.data">;
sum = reduce(filtered);
More information about the Swift-commit
mailing list