There already is the tuple function, so you don't really need your own. In [7]: tuple([1,2,3]...)
Out [7]: (1,2,3) On Thu, Jan 30, 2014 at 10:33 AM, John Myles White <[email protected] > wrote: > Nope, this is the standard way to convert between tuples and arrays. > > Usually, if you have an array, you should stick with the array and not > convert to a tuple. > > -- John > > On Jan 30, 2014, at 7:05 AM, Linus Mellberg <[email protected]> > wrote: > > Is there a "good" way to create tuples from arrays? The best I've come up > with is > function make_tuple(a...) > return a > end > > make_tuple({1, 2, 3}...) > > I feel that there should be a better way. > > >
