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-empty-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-empty-en.fab (canonical · concept)#

# Sorting an empty list gives an empty list in both directions.
main {
    let list<int> xs ← empty
    let list<int> up ← sort via asc from xs
    let list<int> down ← sort via desc from xs
    print up
    print down
    print up.length()
}

Expected output:

[]
[]
0