Skip to main content
Became Hot Network Question
added 45 characters in body
Source Link

I have

Thread[Alphabet[] -> morseAlphabet[]]

But I don't get morse code for each letter, instead:

{"a" -> morseAlphabet[], "b" -> morseAlphabet[], 
 "c" -> morseAlphabet[], "d" -> morseAlphabet[], 
 "e" -> morseAlphabet[], "f" -> morseAlphabet[], 
 "g" -> morseAlphabet[], "h" -> morseAlphabet[], 
 "i" -> morseAlphabet[], "j" -> morseAlphabet[], 
 "k" -> morseAlphabet[], "l" -> morseAlphabet[], 
 "m" -> morseAlphabet[], "n" -> morseAlphabet[], 
 "o" -> morseAlphabet[], "p" -> morseAlphabet[], 
 "q" -> morseAlphabet[], "r" -> morseAlphabet[], 
 "s" -> morseAlphabet[], "t" -> morseAlphabet[], 
 "u" -> morseAlphabet[], "v" -> morseAlphabet[], 
 "w" -> morseAlphabet[], "x" -> morseAlphabet[], 
 "y" -> morseAlphabet[], "z" -> morseAlphabet[]}

So yes, I am a learner. I imagine I am not indexing right. Can someone nudge me in the right direction?

I have

Thread[Alphabet[] -> morseAlphabet[]]

But I don't get morse code for each letter, instead:

{"a" -> morseAlphabet[], "b" -> morseAlphabet[], 
 "c" -> morseAlphabet[], "d" -> morseAlphabet[], 
 "e" -> morseAlphabet[], "f" -> morseAlphabet[], 
 "g" -> morseAlphabet[], "h" -> morseAlphabet[], 
 "i" -> morseAlphabet[], "j" -> morseAlphabet[], 
 "k" -> morseAlphabet[], "l" -> morseAlphabet[], 
 "m" -> morseAlphabet[], "n" -> morseAlphabet[], 
 "o" -> morseAlphabet[], "p" -> morseAlphabet[], 
 "q" -> morseAlphabet[], "r" -> morseAlphabet[], 
 "s" -> morseAlphabet[], "t" -> morseAlphabet[], 
 "u" -> morseAlphabet[], "v" -> morseAlphabet[], 
 "w" -> morseAlphabet[], "x" -> morseAlphabet[], 
 "y" -> morseAlphabet[], "z" -> morseAlphabet[]}

So yes, I am a learner. I imagine I am not indexing right.

I have

Thread[Alphabet[] -> morseAlphabet[]]

But I don't get morse code for each letter, instead:

{"a" -> morseAlphabet[], "b" -> morseAlphabet[], 
 "c" -> morseAlphabet[], "d" -> morseAlphabet[], 
 "e" -> morseAlphabet[], "f" -> morseAlphabet[], 
 "g" -> morseAlphabet[], "h" -> morseAlphabet[], 
 "i" -> morseAlphabet[], "j" -> morseAlphabet[], 
 "k" -> morseAlphabet[], "l" -> morseAlphabet[], 
 "m" -> morseAlphabet[], "n" -> morseAlphabet[], 
 "o" -> morseAlphabet[], "p" -> morseAlphabet[], 
 "q" -> morseAlphabet[], "r" -> morseAlphabet[], 
 "s" -> morseAlphabet[], "t" -> morseAlphabet[], 
 "u" -> morseAlphabet[], "v" -> morseAlphabet[], 
 "w" -> morseAlphabet[], "x" -> morseAlphabet[], 
 "y" -> morseAlphabet[], "z" -> morseAlphabet[]}

So yes, I am a learner. I imagine I am not indexing right. Can someone nudge me in the right direction?

Source Link

Why does my Thread from Alphabet to morseAlphabet not work?

I have

Thread[Alphabet[] -> morseAlphabet[]]

But I don't get morse code for each letter, instead:

{"a" -> morseAlphabet[], "b" -> morseAlphabet[], 
 "c" -> morseAlphabet[], "d" -> morseAlphabet[], 
 "e" -> morseAlphabet[], "f" -> morseAlphabet[], 
 "g" -> morseAlphabet[], "h" -> morseAlphabet[], 
 "i" -> morseAlphabet[], "j" -> morseAlphabet[], 
 "k" -> morseAlphabet[], "l" -> morseAlphabet[], 
 "m" -> morseAlphabet[], "n" -> morseAlphabet[], 
 "o" -> morseAlphabet[], "p" -> morseAlphabet[], 
 "q" -> morseAlphabet[], "r" -> morseAlphabet[], 
 "s" -> morseAlphabet[], "t" -> morseAlphabet[], 
 "u" -> morseAlphabet[], "v" -> morseAlphabet[], 
 "w" -> morseAlphabet[], "x" -> morseAlphabet[], 
 "y" -> morseAlphabet[], "z" -> morseAlphabet[]}

So yes, I am a learner. I imagine I am not indexing right.