From e9b0f1aaa810c15dbdffc4147f2956851c4f1782 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Tue, 8 Jun 2010 02:11:55 +0200 Subject: Racket: square cosmetics. --- scheme/racket/geiser/utils.rkt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scheme/racket/geiser/utils.rkt') 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))) -- cgit v1.2.3