Stream: helpdesk (published)

Topic: ✔ Additional output when broadcasting `println`


view this post on Zulip mbaz (May 03 2022 at 22:29):

Where do these nothings come from?

julia> println.((1,2))
1
2
(nothing, nothing)

julia> println.([1,2])
1
2
2-element Vector{Nothing}:
 nothing
 nothing

view this post on Zulip Mason Protter (May 03 2022 at 22:36):

println returns nothing

view this post on Zulip Mason Protter (May 03 2022 at 22:36):

E.g.

println(“hi”) === nothing

view this post on Zulip mbaz (May 03 2022 at 22:51):

Obvious in hindsight :joy:

view this post on Zulip Notification Bot (May 03 2022 at 22:51):

mbaz has marked this topic as resolved.


Last updated: Dec 28 2024 at 04:38 UTC