Renderingen-US

Experimental through version 1. Version 0 was alpha. This is the first language release: the interface is relatively stable, not frozen. Nothing is promised stable until version 2.

sort-list-en

Translation status: English reader-locale proof. Term names and code fences follow the en pack; supporting prose may still be English.

Syntax:

Category#

collection

None.

Examples#

radix/corpus/sort/list-asc-desc-en.fab (canonical · concept)#

# sort via asc|desc from <list> builds a new list; the source is unchanged.
main {
    let list<int> xs ← [3, 1, 2, 3, 0]
    let list<int> up ← sort via asc from xs
    let list<int> down ← sort via desc from xs
    print up
    print down
    print xs
}

Expected output:

[0, 1, 2, 3, 3]
[3, 3, 2, 1, 0]
[3, 1, 2, 3, 0]