1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

Add clarification about the less predicate passed to merge and sort

This commit is contained in:
Mikael Djurfeldt 2024-12-09 23:46:20 +01:00
parent 25504ba216
commit 98c8a014b2

View file

@ -273,7 +273,10 @@ to @var{value}.
Sorting is very important in computer programs. Therefore, Guile comes Sorting is very important in computer programs. Therefore, Guile comes
with several sorting procedures built-in. As always, procedures with with several sorting procedures built-in. As always, procedures with
names ending in @code{!} are side-effecting, that means that they may names ending in @code{!} are side-effecting, that means that they may
modify their parameters in order to produce their results. modify their parameters in order to produce their results. The predicate
@var{less} passed as second or third argument to the procedures below is
assumed to define a strict weak order on the elements to be merged or
sorted.
The first group of procedures can be used to merge two lists (which must The first group of procedures can be used to merge two lists (which must
be already sorted on their own) and produce sorted lists containing be already sorted on their own) and produce sorted lists containing