Browse by Tags
All Tags »
C# »
yield (
RSS)
Sorry, but there are no more tags available to filter with.
Craig Andera in his blog post showed yet another Fibonacci algorithm, this one with “yeild” operator. private IEnumerable Fibonacci() { yield return 0; yield return 1; int a = 0; int b = 1; while (true) { int temp = a + b; a = b; b = temp; yield return...