Storing an array in CSV file

Without having checked this, a problem could be that you’re not actually constructing a named tuple with (arr = arr). This expression assigns arr to arr, just within parentheses so it almost looks like a named tuple. For one element named tuples you either have to add a comma like (arr = arr,) or I think (; arr) also works, or the more verbose (;arr = arr)

3 Likes