|
| 1 | + |
| 2 | +!Copyright (C) 2021 Richard Weed. |
| 3 | +!All rights reserved. |
| 4 | + |
| 5 | +!Redistribution and use in source and binary forms, with or without |
| 6 | +!modification, are permitted provided that the following conditions are met: |
| 7 | + |
| 8 | +!1. Redistributions of source code, in whole or in part, must retain the |
| 9 | +!above copyright notice, this list of conditions and the following |
| 10 | +!disclaimer. |
| 11 | + |
| 12 | +!2. Redistributions in binary form, in whole or in part, must reproduce the |
| 13 | +!above copyright notice, this list of conditions and the following disclaimer |
| 14 | +!in the documentation and/or other materials provided with the distribution. |
| 15 | + |
| 16 | +!3. The names of the contributors may not be used to endorse or promote from |
| 17 | +!products derived from this software without specific prior written |
| 18 | +!permission. |
| 19 | + |
| 20 | +!4. Redistributions of this software, in whole or in part, in any form, |
| 21 | +!must be freely available and licensed under this original License. The |
| 22 | +!U.S. Government may add additional restrictions to their modified and |
| 23 | +!redistributed software as required by Law. However, these restrictions |
| 24 | +!do not apply to the original software distribution. |
| 25 | + |
| 26 | +!5. Redistribution of this source code, including any modifications, may |
| 27 | +!not be intentionally obfuscated. |
| 28 | + |
| 29 | +!6. Other code may make use of this software, in whole or in part, without |
| 30 | +!restriction, provided that it does not apply any restriction to this |
| 31 | +!software other than outlined above. |
| 32 | + |
| 33 | +!THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS |
| 34 | +!IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| 35 | +!THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 36 | +!PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND |
| 37 | +!CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| 38 | +!EXEMPLARARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 39 | +!PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
| 40 | +!OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 41 | +!WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 42 | +!OTHERWISE), ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 43 | +!ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 44 | + |
| 45 | + |
1 | 46 | Module sortUtils
|
2 | 47 |
|
3 | 48 | ! Sorting utils. Insertion short for short lists plus mergeSort and heapsorrt
|
|
0 commit comments