fbpx
× Share your code snippets, screen shots etc. here

from squash-flatten, to sideways-join-zip !

More
1 year 10 months ago #1 by Phil Hepburn
from squash-flatten, to sideways-join-zip ! was created by Phil Hepburn
Hi guys,

After our look yesterday at destroying a data structure (flattening), here today is a way of building up a data structure - in a way that may be novel (and different) to many of us, me included.

Part of the LINQ extension methods 'list' is Zip - stuck right at the very end of the methods list.
Check this out :-



And with a slightly different coding we can make objects for our collection :-



As yet I have just explored the X# syntax, and not gotten around to seeing how useful this may be. Presumably, if it wasn't useful they (Microsoft guys) would not have made such an extension method.

See what you think - any good ideas and comments, please post here as relies.

Thanks and Best regards,
Phil.
Wales, UK.
Attachments:

Please Log in or Create an account to join the conversation.