Skip to main content
2 of 2
added 32 characters in body
nwellnhof
  • 10.6k
  • 1
  • 20
  • 38

Perl 5 -p, 31 27 bytes

-4 bytes thanks to Grimy

$\=unpack f,$a^=pack f,$_}{ 

Try it online!

nwellnhof
  • 10.6k
  • 1
  • 20
  • 38