Fix test import, and add sum as library fn too

This commit is contained in:
Josef Pospíšil committed 2021-12-09 11:12:08 +01:00
1 parent 6d9286a202
commit 5112ed77d6
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -109,6 +109,11 @@ static const JanetReg cfuns[] = {
"(numarray/scale numarray factor)\n\n"
"scale numarray by factor"
},
{
"sum", num_array_sum,
"(numarray/sum numarray)\n\n"
"sums numarray"
},
{NULL, NULL, NULL}
};