learn-julia-the-hard-way
learn-julia-the-hard-way copied to clipboard
Chapter 6: Control Flow
trafficstars
"Value truthiness" - everything here is correct, but perhaps this should be explained:
julia> true * 6
6
julia> true + 8
9
julia> false + 8
8
julia> true + 64.7
65.7
julia> 6 + (true)im
6 + 1im
(That is, true evaluates in numerical contexts to 1, and false to 0.)
Thanks! I'll add it.
The last example for continue in a while-loop is not finished. The last sentence hangs incomplete