removed and fixed an unnecessary comma
parent
1d1afbfa78
commit
fb245b1b8f
9
util.rkt
9
util.rkt
|
@ -37,16 +37,15 @@
|
||||||
(define (number-list lst)
|
(define (number-list lst)
|
||||||
(map string-append
|
(map string-append
|
||||||
(map number->string (rest (range (length lst))))
|
(map number->string (rest (range (length lst))))
|
||||||
(rest lst)))
|
(rest lst)))
|
||||||
|
|
||||||
(define (indent-list)
|
(define (indent-list lst)
|
||||||
(lambda (lst)
|
(string-append ". " lst))
|
||||||
(string-append ". " lst)))
|
|
||||||
|
|
||||||
(define (prettify-list)
|
(define (prettify-list)
|
||||||
(display
|
(display
|
||||||
(string-join
|
(string-join
|
||||||
(number-list (map (indent-list) (file->string-list path)))
|
(number-list (map indent-list (file->string-list path)))
|
||||||
"\n"
|
"\n"
|
||||||
#:after-last "\n")))
|
#:after-last "\n")))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue