zero
zero(x)
Get the additive identity element for the type of x
(x
can also specify the type itself).
Examples
julia> zero(42)
0
julia> zero('a')
'\0'
julia> zero([1,2])
2-element Array{Int64,1}:
0
0
See Also
User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.