Function output confusion

The expression a=b in Julia has a return value of b. Thus a[1]=99 (and therefore foo) returns 99.

3 Likes