You can use ranges in all places where you are not calling C code, or other cases where someone explicitly restricts the type of the argument.
kl. 14:17:46 UTC+2 tirsdag 1. juli 2014 skrev Andrei Berceanu følgende: > > Mauro, is that the only difference, the memory allocation? Can I use > ranges for plotting, for instance? > > On Tuesday, July 1, 2014 1:33:34 PM UTC+2, Mauro wrote: >> >> > If I define an array using the syntax >> > >> > a = [start:step:end] >> > >> > how can I later recover the step? I tried step(a), but that only seems >> to >> > work for integer ranges. >> >> Why not keep the range? It should work just like an array but use less >> memory: >> >> a = start:step:end >> >> and step works for float ranges: >> >> julia> step(0.5:6.1:40) >> 6.1 >> >
