Skip to main content
added 92 characters in body
Source Link
mazzy
  • 7.2k
  • 2
  • 12
  • 22

PowerShell, 6666 62 bytes

%4+1 inspired by @Steve Bennett

param($s)(echo un dis il im il ir)[('qhllmpr'|%'qmlrhp'|% I*f $s[0])+2-shr1]+$s%4+1]+$s

Try it online!Try it online!

PowerShell, 66 bytes

param($s)(echo un dis il im ir)[('qhllmpr'|% I*f $s[0])+2-shr1]+$s

Try it online!

PowerShell, 66 62 bytes

%4+1 inspired by @Steve Bennett

param($s)(echo un dis im il ir)[('qmlrhp'|% I*f $s[0])%4+1]+$s

Try it online!

Source Link
mazzy
  • 7.2k
  • 2
  • 12
  • 22

PowerShell, 66 bytes

param($s)(echo un dis il im ir)[('qhllmpr'|% I*f $s[0])+2-shr1]+$s

Try it online!