Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
func fib(n, xs=[1]) {
|
||||
loop {
|
||||
var len = xs.len
|
||||
len >= 20 && break
|
||||
xs.append(xs.ft(0.max(len - n)).sum)
|
||||
}
|
||||
return xs
|
||||
}
|
||||
|
||||
for i in (2..10) {
|
||||
say fib(i).join(' ')
|
||||
}
|
||||
say fib(2, [2, 1]).join(' ')
|
||||
Loading…
Add table
Add a link
Reference in a new issue