sort-empty
Translation status: English reader-locale proof. Term names and code fences follow the en pack; supporting prose may still be English.
Syntax:
Category#
collection
Related#
None.
Examples#
radix/corpus/sort/list-empty.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