[Swift-devel] Associative array in Swift [GSoC]
Ben Clifford
benc at hawaga.org.uk
Tue Jun 21 05:27:32 CDT 2011
>
> I think the typical example (if I remember correctly) used in the
> map/reduce paper is a reasonable case: count the number of occurrences
> of each word in a set of files.
>
> In a sense, this can be easy if we don't insist that this be implemented
> in the exact same way as with m/r.
The "can be done but not like mapreduce" is something that hangs around the edge of the map-reduce-in-swift idea the whole time. Is there a reason to want to do it other than fascination-with-google?
> The one can say something along the
> lines of:
>
> result = uniq(sort(cat(map(count_words, files)))) (of course, with map
> being a foreach and so on).
>
> But if we need a collect() with the same semantics as the one in m/r,
> then it's a bit of a different story I think.
Right.
More information about the Swift-devel
mailing list