Dictionaries in Julia
What comprise Dictionaries? Keys Values Example codes eng2kor=Dict( "one"=>"일", "two"=>"이", "three"=>"삼", "four"=>"사" ) function histogram(s) d = Dict() for c in s if c ∉ keys(d) d[c] = 1 else d[c] += 1 end end d end Output: Dict{Any, Any} with 3 entries: '보… => 2 '장… => 2 '윤… => 2 Reference https://benlauwens.github.io/ThinkJulia.jl/latest/book.html#_a_dictionary_is_a_mapping