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,8 @@
|
|||
define average(a::array) => {
|
||||
not #a->size ? return 0
|
||||
local(x = 0.0)
|
||||
with i in #a do => { #x += #i }
|
||||
return #x / #a->size
|
||||
}
|
||||
|
||||
average(array(1,2,5,17,7.4)) //6.48
|
||||
Loading…
Add table
Add a link
Reference in a new issue