[Swift-devel] [Bug 303] fixed_array_mapper versus array_mapper on output
bugzilla-daemon at mcs.anl.gov
bugzilla-daemon at mcs.anl.gov
Fri Apr 1 14:13:18 CDT 2011
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=303
Allan Espinosa <aespinosa at cs.uchicago.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #4 from Allan Espinosa <aespinosa at cs.uchicago.edu> 2011-04-01 14:13:18 ---
Proposed workaround: ad-hoc join to convert an array of strings to a space
separated string:
$ cat join.swift
type file;
app(file o[])
split(file i){
split "-l" 1 @filename(i) "seqout.";
}
string s[] = ["seqout.aa", "seqout.ab", "seqout.ac","seqout.ad"];
string tomap[];
tomap[-1] = "";
/* ad-hoc join */
foreach si, i in s {
tomap[i] = @strcat(tomap[i-1], si, " ");
}
file out[] <fixed_array_mapper; files=tomap[4-1]>;
file input <"seq.in">;
out = split(input);
swift-r3835 cog-r2988
RunID: 20110401-1411-a88h1ak5
Progress:
Final status: Finished successfully:1
--
Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are watching the assignee of the bug.
More information about the Swift-devel
mailing list