> Can somebody please explain this to me: > > julia> foo(args...) = args > foo (generic function with 1 method) > > foo(1) > (1,) > > i.e., why the trailing comma ?
It's a tuple. foo(1,2) (1,2)
> Can somebody please explain this to me: > > julia> foo(args...) = args > foo (generic function with 1 method) > > foo(1) > (1,) > > i.e., why the trailing comma ?
It's a tuple. foo(1,2) (1,2)