[julia-users] Re: List comprehension for 1 <= i < j <= 4

2016-04-05 Thread Jonatan Pallesen
> > I just realized that combinations is in base Julia, so it can instead be > collect(combinations(collect(1:4), 2))

[julia-users] Re: List comprehension for 1 <= i < j <= 4

2016-04-05 Thread Jonatan Pallesen
> > I thought of another approach > using Iterators collect(subsets(collect(1:4), 2)) > >