2017-06-07 3 views

Répondre

1

Essayez ceci:

(define (first-char lst) 
    (map (lambda (w) 
     (string->symbol 
      (string 
      (string-ref 
      (symbol->string w) 0)))) 
     lst)) 

Par exemple:

(first-char '(hello world asd fdas qwerty)) 
=> '(h w a f q) 
+0

Merci !!! ça marche!! c: –