little moral improvements

This commit is contained in:
Rolf-Thomas Happe 2003-07-27 17:36:26 +00:00
parent c8c0d08f3a
commit 98e301455e
2 changed files with 30 additions and 9 deletions

View File

@ -17,11 +17,12 @@ parameters) and consists mainly of generic sequence code compiled with
the basic sequence operation names bound to the corresponding vector the basic sequence operation names bound to the corresponding vector
procedures. The library is neither complete nor tweaked nor tested procedures. The library is neither complete nor tweaked nor tested
sytematically. (The idea to recycle parts of the srfi-13 code came sytematically. (The idea to recycle parts of the srfi-13 code came
too late.) It contains the folllowing procedures, arranged in too late.) It contains the following procedures, arranged in
columns=structures and `* categories' from SRFI-13 and -1. columns=structures and `* categories' from SRFI-13 and -1, followed
by the list of name clashes with standard modules.
VECTOR-LIB SEQUENCE-LIB ABSEQUENCES, also SL VECTOR-LIB SEQUENCE-LIB ABSEQUENCES, also S.L.
* Predicates or so * Predicates or so
vector? sequence? absequence? vector? sequence? absequence?
sequence-behavior? sequence-behavior?
@ -76,6 +77,17 @@ vectors-for-each sequences-for-each
vectors-fold sequences-fold vectors-fold sequences-fold
vectors-fold-right sequences-fold-right vectors-fold-right sequences-fold-right
* Name clashes with scheme
vector-fill!
list->vector
When using both SCHEME and VECTOR-LIB, you should choose the binding
explicitly, like so:
(open (modify scheme (hide vector-fill!
list->vector))
vector-lib)
* *
Prelude Prelude

View File

@ -1,7 +1,8 @@
; Copyright (c) 2003 RT Happe <rthappe at web de> ; Copyright (c) 2003 RT Happe <rthappe at web de>
; See the file COPYING distributed with the Scheme Untergrund Library ; See the file COPYING distributed with the Scheme Untergrund Library
;;; refers to structure KRIMS from sunterlib/s48/krims ;;; refers to structures from sunterlib/s48/krims
;;; relies on implicit shadowing of exported bindings
;; sequences as data + behaviour ;; sequences as data + behaviour
(define-structure absequences absequences-face (define-structure absequences absequences-face
@ -17,7 +18,9 @@
srfi-1+ ; list procs srfi-1+ ; list procs
srfi-13 ; string procs srfi-13 ; string procs
let-opt ; let-optionals [ from scsh ] let-opt ; let-optionals [ from scsh ]
scheme) (modify scheme (hide map for-each member assoc) ; srfi-1+
(hide string->list string-copy string-fill!) ; srfi-13
))
(files specseqs)) (files specseqs))
;; basic sequence accessors etc. ;; basic sequence accessors etc.
@ -29,7 +32,8 @@
byte-vectors byte-vectors
srfi-1 ; make-list srfi-1 ; make-list
srfi-23 ; error srfi-23 ; error
scheme) (modify scheme (hide map for-each member assoc) ; srfi-1
))
(files baseqs)) (files baseqs))
;; sequence operations defined in terms of the basic protocol ;; sequence operations defined in terms of the basic protocol
@ -40,7 +44,8 @@
srfi-1+ ; append! rest srfi-1+ ; append! rest
srfi-23 ; error srfi-23 ; error
let-opt ; let-optionals [ from scsh ] let-opt ; let-optionals [ from scsh ]
scheme) (modify scheme (hide map for-each member assoc) ; srfi-1+
))
(files genseqs)) (files genseqs))
@ -51,7 +56,8 @@
util ; unspecific util ; unspecific
let-opt ; let-optionals [ from scsh ] let-opt ; let-optionals [ from scsh ]
srfi-1+ ; append! drop first rest srfi-1+ ; append! drop first rest
scheme) (modify scheme (hide map for-each member assoc) ; srfi-1+
))
;; bind the basic operations to vector specialists ;; bind the basic operations to vector specialists
(begin (begin
(define sequence? vector?) (define sequence? vector?)
@ -80,5 +86,8 @@
srfi-13 ; string procs srfi-13 ; string procs
byte-vectors byte-vectors
let-opt ; let-optionals [ from scsh ] let-opt ; let-optionals [ from scsh ]
scheme) (modify scheme (hide map for-each member assoc) ; srfi-1
(hide string->list string-copy string-fill!) ; srfi-13
(hide vector-fill! list->vector) ; vector-lib
))
(files composeqs)) (files composeqs))