Infinite Lists With C# Yield(codethinked.com)

submitted by justin_etheredgejustin_etheredge(8539) 3 years ago

What we are about to talk about here may seem like a purely academic exercise, but hopefully I will convince you that this isn’t exactly the case. There are several situations in real-world applications where infinite lists can appears if only we were to think about them in the right way.

1 comment |category: |Views: 450

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by FlySwatFlySwat(485) 3 years ago 0

I see someone has been playing with Haskell.

Lazy evaluation can be mocked by using yield much like Python mocks it using iterator generators.

Reply

information Login or create an account to comment on this story