Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P56
(An Untitled Masterwork)
Active
Public
Actions
Authored by
stwalkerster
on Oct 4 2016, 9:03 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Tags
None
Referenced Files
F2480:
Oct 4 2016, 9:03 AM
2016-10-04 09:03:20 (UTC+0)
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
stwalkerster
created this paste.
Oct 4 2016, 9:03 AM
2016-10-04 09:03:20 (UTC+0)
•
import-bot
changed the edit policy from "All Users" to "
Community
(Project)".
Feb 3 2017, 3:03 PM
2017-02-03 15:03:38 (UTC+0)
Log In to Comment