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:
using NamedArrays
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.
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.