mes: string-join: Handle empty list.
* module/mes/boot-0.scm (string-join): Handle empty list.
This commit is contained in:
parent
b209378fca
commit
8d866b6441
|
@ -200,8 +200,9 @@
|
|||
(list 'load (list string-append %moduledir file)))
|
||||
|
||||
(define (string-join lst infix)
|
||||
(if (null? (cdr lst)) (car lst)
|
||||
(string-append (car lst) infix (string-join (cdr lst) infix))))
|
||||
(if (null? lst) ""
|
||||
(if (null? (cdr lst)) (car lst)
|
||||
(string-append (car lst) infix (string-join (cdr lst) infix)))))
|
||||
|
||||
(include-from-path "mes/module.mes")
|
||||
|
||||
|
|
Loading…
Reference in a new issue