On VS Code:
I am trying to create a named array, but it throws this error:
ERROR: MethodError: reducing over an empty collection is not allowed; consider supplying init to the reducer
My code is:
NamedArray([1,2,3], ["A", "B", "C"])
I am getting this error on VS Code only, which is strange. Maybe something is wrong with VS Code Julia extension.
Works just fine for me, both evaluating inline in the editor and in the built in REPL
Thank you for the answer. I marked as resolved - looks like it is a user specific issue. The strange thing is I am having an error but code is being executed correctly, outputting the same array as yours.