12 lines
339 B
Plaintext
12 lines
339 B
Plaintext
1) sorting digits in a number returns a new number of ordered digits
|
|
{W.sort < 51324}
|
|
-> 12345
|
|
|
|
2) sorting a sequence of numbers returns a new ordered sequence of these numbers
|
|
{S.sort < 51 111 33 2 41}
|
|
-> 2 33 41 51 111
|
|
|
|
3) sorting an array of numbers returns the same array ordered
|
|
{A.sort! < {A.new 51 111 33 2 41}}
|
|
-> [2,33,41,51,111]
|