[Swift-devel] Re: fixed_array_mapper versus array_mapper on output

Mihael Hategan hategan at mcs.anl.gov
Sat Feb 12 16:02:54 CST 2011


Somebody remind me why we have those both since they seem to be intended
to do the same thing.

On Sat, 2011-02-12 at 15:59 -0600, Allan Espinosa wrote:
> Moving thread to devel for brainstorming possible solutions:
> 
> 1.  implement a join() function: @join(array, ", ");
> 2.  fix array_mapper
> 
> 2011/2/12 Allan Espinosa <aespinosa at cs.uchicago.edu>:
> > For an array output data structure, the two mappers behave differently
> >
> > type file;
> >
> > app(file o[])
> >    split(file i){
> >  split "-l" 1 @filename(i) "seqout.";
> > }
> >
> > /*file out[] <array_mapper; files=["seqout.aa", "seqout.ab",
> > "seqout.ac",  // Does not work
> >                                 "seqout.ad"]>;*/
> > file out[] <fixed_array_mapper; files="seqout.aa, seqout.ab,
> > seqout.ac, seqout.ad">; // Works
> >
> > file input <"seq.in">;
> > out = split(input);
> >
> >
> 
> 





More information about the Swift-devel mailing list