What does the return keyword do in a let/begin block?

Why not just the for loop itself?

julia> var1 = let x
           for i in 1:5
               (i == 4) && (x = i; break)
           end
           x
       end
4
3 Likes