Skip to main content
2 of 3
added 1 character in body
a spaghetto
  • 11.3k
  • 3
  • 46
  • 82

#Erlang, 26 bytes

f([X])->X-64;f(X)->[X+64].

One of the few times where Erlang's string behavior is useful.

a spaghetto
  • 11.3k
  • 3
  • 46
  • 82