Page MenuHomePhabricator
Authored By
stwalkerster
Oct 4 2016, 9:03 AM
Size
199 B
Referenced Files
None
Subscribers
None
public IEnumerable<int> Fibonacci()
{
int prev = -1;
int next = 1;
while (true)
{
int sum = prev + next;
prev = next;
next = sum;
yield return sum;
}
}

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1993
Default Alt Text
(199 B)

Event Timeline