I am probably missing something very obvious. Can someone help me understand this?
foo_string = "foo" foo_dict = Dict("f"=>0, "o"=>0)
but why does
for char in foo_string print(char, " ", haskey(foo_dict, char)) end
f false o false o false
What is a Julian way to check if a character in a string is in a dictionary key?
Thanks in advance.
Note that the original poster on Slack cannot see your response here on Discourse. Consider transcribing the appropriate answer back to Slack, or pinging the poster here on Discourse so they can follow this thread.
(Original message ) (More Info)