Re: Number of return values of topological-sort
Dr. Arne Babenhauserheide 01 Jul 2024 16:28 UTC
Lassi Kortela <xxxxxx@lassi.io> writes:
> Shiro:
>
>> Does topological-sort always return 3 values? I'm not sure because
>> the second and third paragraph of the topological-sort entry seems
>> to allow it to return either 1 or 3 values.
>> I prefer not to have that choice; if it returns 3 values, all
>> implementations should return 3 values. If that's the intention, we
>> can state "It returns three values. The first value is the list of
>> topologically sorted nodes or #f ..." to be clear.
>
> +1
That sounds reasonable. I created a pull-request.
https://github.com/scheme-requests-for-implementation/srfi-234/pull/10
Thank you!
Best wishes,
Arne
--
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de