Works beautifully, thanks.

On 14 September 2016 at 12:21, Erik Schnetter <schnet...@gmail.com> wrote:

> On Tue, Sep 13, 2016 at 9:36 PM, Anandaroop Ray <sparrowhaw...@gmail.com>
> wrote:
>
>> Cool! The colons approach makes sense to me, followed by splatting.
>>
>> I'm unfamiliar with the syntax here but when I try to create a tuple in
>> the REPL using
>>
>> inds = ((:) for i in 1:3)
>>
>> I get
>> ERROR: syntax: missing separator in tuple
>>
>
> That's a feature that will be available in Julia 0.5. You can instead write
>
> inds = [(:) for i in 1:3]
>
> which defines an array instead of a generator. (The "fill" syntax
> mentioned below works as well, and is even shorter.)
>
> -erik
>
> --
> Erik Schnetter <schnet...@gmail.com> http://www.perimeterinstitute.
> ca/personal/eschnetter/
>

Reply via email to