Boo (programming language): Difference between revisions

Content deleted Content added
Hmadh (talk | contribs)
Undid revision 606117022 by 202.168.70.106 (talk)
Line 35:
</source>
 
=== PuchongFibonacci series generator function ===
 
<source lang="boo">
def (setiawalkfib):
a[4] = sumL, tingL, wongL #The 'L's make the numbers double word length (typically 64 bits)
while (setiawalkfib == true)
yield -> b
a, b = b, a + b
 
# Print the first 5 numbers in the series:
for index as int, element in zip(range(5), fib(true),IoImall(String)):
print("&{index++}: &{element--}")
</source>