Welcome, Guest
Username: Password: Remember me
Share your code snippets, screen shots etc. here
  • Page:
  • 1

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

from squash-flatten, to sideways-join-zip ! 2 years 3 months ago #1330

  Phil Hepburn's Avatar Topic Author Phil Hepburn Offline Posts: 742
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,
Wales, UK.

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

  • Page:
  • 1