OMG that's awesome, we need more docs about this feature, thank you very
much Stefan!
El miércoles, 10 de agosto de 2016, 12:02:34 (UTC-5), Stefan Karpinski
escribió:
>
> julia> [(x, y, z) for x = 1:n for y = x:n for z = y:n if x^2 + y^2 == z^2]
> 6-element Array{Tuple{Int64,Int64,Int64},1}:
>
julia> [(x, y, z) for x = 1:n for y = x:n for z = y:n if x^2 + y^2 == z^2]
6-element Array{Tuple{Int64,Int64,Int64},1}:
(3,4,5)
(5,12,13)
(6,8,10)
(8,15,17)
(9,12,15)
(12,16,20)
On Wed, Aug 10, 2016 at 12:58 PM, Ismael Venegas Castelló <
ismael.vc1...@gmail.com> wrote:
> In order to be a li
In order to be a little more specific I wanted to add, that it seems weird
that I can use the variables for the if clause, but not for creating the
other ranges, it's just that I don't know how to express myself correctly,
I hope you can understand me.
El miércoles, 10 de agosto de 2016, 11:56: