Create new package via PkgTemplates.jl
· One min read
Tutorial-style posts and notes.
View All Tagsget
Dict, Array) or other containers with customizable interfaces.get(collection, key, default) will attempt to retrieve the value for key from collection. If the value is not found, default will be returned.d = Dict(:a => 1, :b => 2)
println(get(d, :a, 0)) # 1
println(get(d, :c, 0)) # 0 (Due to :c not existing)
To iterate over the elements within an array, there are several different ways to write the code. Now suppose we have such an array: a = copy(reshape(1:16, 4, 4))
I really had to write about the PlotlyLight package because it starts up much faster than other plotting packages, both in terms of first run time and first plot time. So how fast is it?
time()