1Array.sorted(3kaya) Kaya module reference Array.sorted(3kaya)
2
3
4
6 Array::sorted - Return a sorted array.
7
9 [a] sorted( [a] xs, Int(a, a) sortfn=compare )
10
12 xs The array to sort
13
14 sortfn Optionally, a user-defined comparison function.
15
17 Sorts an array, but unlike Array.sort (3kaya) returns a new array and
18 leaves the original unmodified.
19
21 Kaya standard library by Edwin Brady, Chris Morris and others
22 (kaya@kayalang.org). For further information see http://kayalang.org/
23
25 The Kaya standard library is free software; you can redistribute it
26 and/or modify it under the terms of the GNU Lesser General Public
27 License (version 2.1 or any later version) as published by the Free
28 Software Foundation.
29
31 See the Array.sort (3kaya) function documentation for usage examples.
32
33
34
35Kaya December 2010 Array.sorted(3kaya)