chrisvoncsefalvay / learn-julia-the-hard-way

Learn Julia the hard way!
https://app.gitbook.com/@chrisvoncsefalvay/s/learn-julia-the-hard-way/
Other
772 stars 153 forks source link

Error in chp4 #70

Open lafith opened 3 years ago

lafith commented 3 years ago

Under the section 'Type inference and empty collections' It is mentioned that 'Julia has a dedicated type, None – a subtype of Any – that applies to the empty set'. But following is the output I am getting in REPL:

    julia> empty_set = []
       Any[]

instead of:

    julia> empty_set = []
    0-element Array{None,1}