Error: function undefined

It’s conventional in Julia for mutating functions to return something, usually the mutated argument. This allows the function call to be chained as an argument to another function.

3 Likes