summaryrefslogtreecommitdiff
path: root/scheme/racket/geiser/utils.rkt
diff options
context:
space:
mode:
Diffstat (limited to 'scheme/racket/geiser/utils.rkt')
-rw-r--r--scheme/racket/geiser/utils.rkt8
1 files changed, 4 insertions, 4 deletions
diff --git a/scheme/racket/geiser/utils.rkt b/scheme/racket/geiser/utils.rkt
index 730a396..4bf9494 100644
--- a/scheme/racket/geiser/utils.rkt
+++ b/scheme/racket/geiser/utils.rkt
@@ -16,10 +16,10 @@
symbol->keyword)
(define (pair->list pair)
- (let loop ((d pair) (s '()))
- (cond ((null? d) (reverse s))
- ((symbol? d) (reverse (cons d s)))
- (else (loop (cdr d) (cons (car d) s))))))
+ (let loop ([d pair] [s '()])
+ (cond [(null? d) (reverse s)]
+ [(symbol? d) (reverse (cons d s))]
+ [else (loop (cdr d) (cons (car d) s))])))
(define keyword->symbol (compose string->symbol keyword->string))
(define (symbol->keyword sym) (string->keyword (format "~a" sym)))