no problema, using morse_codes varibale works fine!
morse_codes
is declared as a module attribute:
defmodule MorseCode do @morse_code morse_code def decode(code) do @morse_code["..."] end end
ummm, i tried your solution without success, i'm always getting:
solution:61: undefined function morse_code/0
this is one of the best solution for me cheers!
ty! I tought preloaded was initial solution. My mistake sorry :$
You have no need for the preloaded code here, which is giving you all of your issues
It accepts only first class functions.
no problema, using
morse_codes
varibale works fine!is declared as a module attribute:
ummm, i tried your solution without success, i'm always getting:
this is one of the best solution for me
cheers!
ty! I tought preloaded was initial solution. My mistake sorry :$
You have no need for the preloaded code here, which is giving you all of your issues
It accepts only first class functions.