first-n, butfirst-n in favor of srfi-1 functions.
remove string-join, string-pad in favor of srfi-13 functions.
2003-07-02 Han-Wen Nienhuys <hanwen@cs.uu.nl>
* scm/lily.scm: remove tail, filter-list, filter-out-list,
- first-n, butfirst-n in favor of srfi-1 functions
+ first-n, butfirst-n in favor of srfi-1 functions.
+ remove string-join, string-pad in favor of srfi-13 functions.
* mf/parmesan-custodes.mf (dir_down): remove _ from glyph names.
(use-modules
- (ice-9 regex))
+ (ice-9 regex)
+ )
(define (format-c-header c-h)
(regexp-substitute/global
;;; (c) 2000--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
;;; Jan Nieuwenhuizen <janneke@gnu.org>
-(use-modules (oop goops))
+(use-modules (oop goops)
+ (srfi srfi-13)
+ )
(define-class <texi-node> ()
(children #:init-value '() #:accessor node-children #:init-keyword #:children)
(apply string-append
(map (lambda (x)
(string-append
- (pad-string-to
+ (string-pad-right
(string-append "\n* " (car x) ":: ")
(+ maxwid 8)
)
(use-modules (ice-9 regex)
- (srfi srfi-1))
+ (srfi srfi-1) ;lists
+ (srfi srfi-13) ;strings
+ )
;;; General settings
;; debugging evaluator is slower.
)))
-;;;;;;;;;;;;;;;;
-; strings.
-
-
-;; TODO : make sep optional.
-(define-public (string-join str-list sep)
- "append the list of strings in STR-LIST, joining them with SEP"
-
- (apply string-append (list-insert-separator str-list sep))
- )
-
-(define-public (pad-string-to str wid)
- (string-append str (make-string (max (- wid (string-length str)) 0) #\ ))
- )
;;;;;;;;;;;;;;;;
; other