Closed softmattertheory closed 9 months ago
Describe the bug The apply function doesn't seem to work with variadic args.
To Reproduce
fn g(...x) { for (q in x) print q } apply(g, [1,2,3])
returns "Error 'ClssLcksMthd': Class lacks method 'enumerate'."
Expected behavior The function g should be called with the list, and should print its contents in sequence.
This bug is fixed in morpho6 by this pull request https://github.com/Morpho-lang/morpho-libmorpho/pull/17
We will merge into this repository soon.
Describe the bug The apply function doesn't seem to work with variadic args.
To Reproduce
returns "Error 'ClssLcksMthd': Class lacks method 'enumerate'."
Expected behavior The function g should be called with the list, and should print its contents in sequence.