Julia uses the colon operator like Matlab to do this: 5:5:20

 — John

On Mar 12, 2014, at 8:40 PM, Ben Ward <[email protected]> wrote:

> Hi all,
> 
> In R if I want to generate a sequence of numbers, say 5, 10, 15, 20, in R 
> seq(from=5, to=20, by=5) would achieve this. I've had a glance over the 
> sections of the standard library functions doc and didn't see a function like 
> this - (unless it has a totally different name or a package provides it). Is 
> there a function like this for Julia that does this easily?
> 
> Thanks,
> Ben.

Reply via email to