Skip to main content
Commonmark migration
Source Link

#APLX, 19 bytes

APLX, 19 bytes

s[(∊(⎕a⎕A⎕D)[a])⍋s] 

⎕a⎕A⎕D lower upper digits

()[a] reorder according to array a

flatten

()⍋s according to that "alphabet", give the indices that would sort string s

s[] use that to reorder s

#APLX, 19 bytes

s[(∊(⎕a⎕A⎕D)[a])⍋s] 

⎕a⎕A⎕D lower upper digits

()[a] reorder according to array a

flatten

()⍋s according to that "alphabet", give the indices that would sort string s

s[] use that to reorder s

APLX, 19 bytes

s[(∊(⎕a⎕A⎕D)[a])⍋s] 

⎕a⎕A⎕D lower upper digits

()[a] reorder according to array a

flatten

()⍋s according to that "alphabet", give the indices that would sort string s

s[] use that to reorder s

replaced http://meta.codegolf.stackexchange.com/ with https://codegolf.meta.stackexchange.com/
Source Link
replaced http://meta.codegolf.stackexchange.com/ with https://codegolf.meta.stackexchange.com/
Source Link
replaced http://meta.codegolf.stackexchange.com/ with https://codegolf.meta.stackexchange.com/
Source Link
Loading
replaced http://meta.codegolf.stackexchange.com/ with https://codegolf.meta.stackexchange.com/
Source Link
Loading
explanation
Source Link
Adám
  • 31.8k
  • 4
  • 131
  • 293
Loading
Source Link
Adám
  • 31.8k
  • 4
  • 131
  • 293
Loading