At Sun, 2 Aug 2020 18:38:18 -0700 (PDT), evdubs wrote:
> However, the docs also show:
> 
> > (current-directory (collection-path "info"))
> > (for/list ([f (in-directory)])
>      f)
> '(#<path:main.rkt>
>   #<path:compiled>
>   #<path:compiled/main_rkt.dep>
>   #<path:compiled/main_rkt.zo>)
> 
> Isn't this not getting sorted correctly? I am seeing that calls to 
> (in-directory) do not have sorted results, but calls to (in-directory 
> "path") do have sorted results.

You're right that the documentation's example is incorrect, and I'll
fix that.

Most examples in the documentation are rendered by running them, so the
results can't get out-of-sync like this. Since the `in-directory`
example involves the filesystem, though, the example result is written
out in the documentation source, and it wasn't updated when the sorting
guarantee was added to `in-directory`.

Matthew

-- 
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 racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/20200803062825.252%40sirmail.smtps.cs.utah.edu.

Reply via email to