Skip to main content
1 of 3
a spaghetto
  • 11.3k
  • 3
  • 46
  • 82

#Erlang, 35 bytes

f(X)when X<27->[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