EMA-XPS Online


SORT

SORT
====

syntax: (sort <sequence> <predicate>)

This function sorts the elements of a sequence.
<predicate> is a function, which explains how the
elements have to be sorted. SORT returns a sorted
sequence, which replaces the original.

example:       >(sort '(5 3 8 2 1 4) #'<)
               (1 2 3 4 5 8)


EMA-XPS Online