srfi-67.scm 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. ;;; srfi-67.scm --- Compare Procedures
  2. ;; Copyright (C) 2010 Free Software Foundation, Inc.
  3. ;; This library is free software; you can redistribute it and/or
  4. ;; modify it under the terms of the GNU Lesser General Public
  5. ;; License as published by the Free Software Foundation; either
  6. ;; version 3 of the License, or (at your option) any later version.
  7. ;; This library is distributed in the hope that it will be useful,
  8. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. ;; Lesser General Public License for more details.
  11. ;; You should have received a copy of the GNU Lesser General Public
  12. ;; License along with this library. If not, see
  13. ;; <http://www.gnu.org/licenses/>.
  14. ;;; Commentary:
  15. ;; This module is not yet documented in the Guile Reference Manual.
  16. ;;; Code:
  17. (define-module (srfi srfi-67)
  18. #:export (</<=?
  19. </<?
  20. <=/<=?
  21. <=/<?
  22. <=?
  23. <?
  24. =?
  25. >/>=?
  26. >/>?
  27. >=/>=?
  28. >=/>?
  29. >=?
  30. >?
  31. boolean-compare
  32. chain<=?
  33. chain<?
  34. chain=?
  35. chain>=?
  36. chain>?
  37. char-compare
  38. char-compare-ci
  39. compare-by<
  40. compare-by<=
  41. compare-by=/<
  42. compare-by=/>
  43. compare-by>
  44. compare-by>=
  45. complex-compare
  46. cond-compare
  47. debug-compare
  48. default-compare
  49. if-not=?
  50. if3
  51. if<=?
  52. if<?
  53. if=?
  54. if>=?
  55. if>?
  56. integer-compare
  57. kth-largest
  58. list-compare
  59. list-compare-as-vector
  60. max-compare
  61. min-compare
  62. not=?
  63. number-compare
  64. pair-compare
  65. pair-compare-car
  66. pair-compare-cdr
  67. pairwise-not=?
  68. rational-compare
  69. real-compare
  70. refine-compare
  71. select-compare
  72. symbol-compare
  73. vector-compare
  74. vector-compare-as-list)
  75. #:replace (string-compare string-compare-ci)
  76. #:use-module (srfi srfi-27))
  77. (cond-expand-provide (current-module) '(srfi-67))
  78. (include-from-path "srfi/srfi-67/compare.scm")