Page MenuHomePhabricator

(An Untitled Masterwork)
ActivePublic

Authored by stwalkerster on Oct 4 2016, 9:03 AM.
Tags
None
Referenced Files
F2480:
Oct 4 2016, 9:03 AM
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;
}
}

Event Timeline

import-bot changed the edit policy from "All Users" to "Community (Project)".Feb 3 2017, 3:03 PM