Sync
This commit is contained in:
parent
6f050a029e
commit
776bba907c
3887 changed files with 59894 additions and 7280 deletions
8
Task/Fibonacci-sequence/Chapel/fibonacci-sequence.chapel
Normal file
8
Task/Fibonacci-sequence/Chapel/fibonacci-sequence.chapel
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
iter fib() {
|
||||
var a = 0, b = 1;
|
||||
|
||||
while true {
|
||||
yield a;
|
||||
(a, b) = (b, b + a);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue