Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
6 added 176 characters in body
source | link

Japt, 15 13 7 bytes

Modifies the original input array.

££hYXgU

Try it (additional bytes are to write the modified input to the console)

££hYXgU
£           :Map
 £          :  Map each X at index Y
  hY        :    Replace the element at index Y
    XgU     :    With the element at index X

Japt, 15 13 7 bytes

Modifies the original input array.

££hYXgU

Try it (additional bytes are to write the modified input to the console)

Japt, 15 13 7 bytes

Modifies the original input array.

££hYXgU

Try it (additional bytes are to write the modified input to the console)

££hYXgU
£           :Map
 £          :  Map each X at index Y
  hY        :    Replace the element at index Y
    XgU     :    With the element at index X
5 added 91 characters in body
source | link

Japt -h, 15 13 97 bytes

Modifies the original input array.

££hYXgU
Ì

Try itTry it (additional bytes are to write the modified input to the console)

Japt -h, 15 13 9 bytes

££hYXgU
Ì

Try it

Japt, 15 13 7 bytes

Modifies the original input array.

££hYXgU

Try it (additional bytes are to write the modified input to the console)

4 added 1 character in body; deleted 405 characters in body
source | link

Japt -h, 15 1313 9 bytes

@£hYXgUÃ}gUÊN££hYXgU

Try it


Original

¸¥¡hYXgUÃ̸?U:ßÌ

Try it or run all test casesTry it

Japt -h, 15 13 bytes

@£hYXgUÃ}gUÊN

Try it


Original

¸¥¡hYXgUÃ̸?U:ß

Try it or run all test cases

Japt -h, 15 13 9 bytes

££hYXgU
Ì

Try it

3 added 176 characters in body; added 5 characters in body
source | link
2 edited body
source | link
1
source | link