Closed apblack closed 9 years ago
The following method works with the JS backend:
method productUsingFold(input:List<Number>) -> Number { // returns the product of the numbers in input. def listProduct = input.fold{a, b -> a*b}startingWith(1) }
Evidently, the def returns a value. With the C backed, this method returns done.
The same seems to be true for var declarations.
This is fixed in ce3b44ed.
The following method works with the JS backend:
Evidently, the def returns a value. With the C backed, this method returns done.
The same seems to be true for var declarations.