Skip to main content
Commonmark migration
Source Link

#Erlang, 26 bytes

Erlang, 26 bytes

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

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

#Erlang, 26 bytes

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

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

Erlang, 26 bytes

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

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

added 1 character in body
Source Link
a spaghetto
  • 11.3k
  • 3
  • 46
  • 82

#Erlang, 3526 bytes

f(X)when X<27->[X+64];f([X])->X-6464;f(X)->[X+64].

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

#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.

#Erlang, 26 bytes

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

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

Source Link
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.