learn-julia-the-hard-way icon indicating copy to clipboard operation
learn-julia-the-hard-way copied to clipboard

Chapter 6: Control Flow

Open sbromberger opened this issue 10 years ago • 2 comments
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.)

sbromberger avatar Jan 14 '15 22:01 sbromberger

Thanks! I'll add it.

chrisvoncsefalvay avatar Jan 16 '15 02:01 chrisvoncsefalvay

The last example for continue in a while-loop is not finished. The last sentence hangs incomplete

alemelis avatar Nov 18 '17 18:11 alemelis