Skip to main content
deleted 6 characters in body
Source Link
Pavel
  • 9.5k
  • 1
  • 56
  • 96

Dyalog APL (1 character), 1 byte

Dyalog APL has a built in operator function (thank you Zacharý for clearing this up) to do this.

Example

⍋11 2 4 15 2 3 1 4 {⍵[⍋⍵]}11 4 2 15 2 4 11 15 

Here I'm indexing into the list by the sorted indices to return the list in ascending order.

Dyalog APL (1 character)

Dyalog APL has a built in operator function (thank you Zacharý for clearing this up) to do this.

Example

⍋11 2 4 15 2 3 1 4 {⍵[⍋⍵]}11 4 2 15 2 4 11 15 

Here I'm indexing into the list by the sorted indices to return the list in ascending order.

Dyalog APL, 1 byte

Dyalog APL has a built in operator function (thank you Zacharý for clearing this up) to do this.

Example

⍋11 2 4 15 2 3 1 4 {⍵[⍋⍵]}11 4 2 15 2 4 11 15 

Here I'm indexing into the list by the sorted indices to return the list in ascending order.

function, not operator
Source Link

Dyalog APL (1 character)

Dyalog APL has a built in operatoroperator function (thank you Zacharý for clearing this up) to do this.

Example

⍋11 2 4 15 2 3 1 4 {⍵[⍋⍵]}11 4 2 15 2 4 11 15 

Here I'm indexing into the list by the sorted indices to return the list in ascending order.

Dyalog APL (1 character)

Dyalog APL has a built in operator to do this.

Example

⍋11 2 4 15 2 3 1 4 {⍵[⍋⍵]}11 4 2 15 2 4 11 15 

Here I'm indexing into the list by the sorted indices to return the list in ascending order.

Dyalog APL (1 character)

Dyalog APL has a built in operator function (thank you Zacharý for clearing this up) to do this.

Example

⍋11 2 4 15 2 3 1 4 {⍵[⍋⍵]}11 4 2 15 2 4 11 15 

Here I'm indexing into the list by the sorted indices to return the list in ascending order.

Source Link

Dyalog APL (1 character)

Dyalog APL has a built in operator to do this.

Example

⍋11 2 4 15 2 3 1 4 {⍵[⍋⍵]}11 4 2 15 2 4 11 15 

Here I'm indexing into the list by the sorted indices to return the list in ascending order.