std.range.zip and tuple labels

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Wed May 15 11:15:00 PDT 2013


On 05/15/2013 08:00 PM, bearophile wrote:
> I think currently you have to use map!() to replace the tuple. Maybe am unsafe
> map-cast suffices:

Feels a bit nasty, and I have the feeling it would probably slow things down ...
? :-(

I like the zipWith idea, though I can't help but wish zip() itself was flexible
enough to allow something like,

	zip(arr1, "one", arr2, "two")

... though I guess that would fall over if you ever wanted to use zip to lock
together two immutable strings.


More information about the Digitalmars-d-learn mailing list