Morse decode by notogawa

import List
main=interact$init.(>>=f).groupBy(%)
f" "=" "
f x=["zqetianmsurwdkgohvf,l.pjbxcyzq"!!mod(foldl(#)1x)32|x<"/"]
a#b=2*a+46-fromEnum b
a%b=[a,b]\\"..--"==""

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page