Hi David,

On 2021-05-13, 13:12 -0400, David Storrs <[email protected]> wrote:

> Incidentally, a more concise way of doing this would be:
>
> (define target (build-path "tarzan")) ; convert to path only once
> (for/or ([item (in-directory "/tmp/test")]) ; or whatever directory
> you want to start in
>   (equal? target (file-name-from-path item)))

Thanks! This looks good.

-- 
Utkarsh Singh
http://utkarshsingh.xyz

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/87sg2p759w.fsf%40gmail.com.

Reply via email to