bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] [Manual] Adding an example for asort() call with a compar


From: Aharon Robbins
Subject: Re: [bug-gawk] [Manual] Adding an example for asort() call with a comparison function
Date: Sun, 10 Jan 2016 06:13:51 +0200
User-agent: Heirloom mailx 12.5 6/20/10

Hi.

> Date: Wed, 6 Jan 2016 00:22:28 +0100 (CET)
> From: St?phane Goujet <address@hidden>
> To: address@hidden
> Subject: [bug-gawk] [Manual] Adding an example for asort() call with a
>  comparison function
>
> Hello,
>
>    I could not find any example of calling asort() (or asorti()) with a 
> comparison function in the manual.
>
> .............
>
>    Of course I cannot say everyone shares my level of blindness, but 
> a small example would not hurt anyway. What is your opinion?

Please see the node 'Controlling Array Traversal', which comes
right before the node 'Array Sorting Functions', for some
examples of user defined functions to control scanning order.

If the manual is read linearly, then the text in 'Array Sorting
Functions' should be adequate, since the reader will have seen the
use of user defined functions.

However, it's probably worth adding a small example directly into
the 'Array Sorting Functions' node as well.

Thanks!

Arnold



reply via email to

[Prev in Thread] Current Thread [Next in Thread]