GNU bug report logs -
#34457
GNU Guile: Error in docstring of proc reverse-list->string
Previous Next
Reported by: Андрей <esgorhannoth <at> gmail.com>
Date: Tue, 12 Feb 2019 16:04:02 UTC
Severity: minor
Done: Calvin Heim <frofroggy <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Tue, Feb 12, 2019 at 03:34:06PM +0400, Андрей wrote:
> Good day!
>
> The docstring of `reverse-list->string` proc says:
> ```
> scheme@(guile-user)> (help reverse-list->string )
> `reverse-list->string' is a procedure in the (guile) module.
>
> - Scheme Procedure: reverse-list->string chrs
> An efficient implementation of `(compose string->list reverse)':
>
> (reverse-list->string '(#\a #\B #\c)) ==> "cBa"
>
> ```
> and it works as the example shows, but I think the description line
> should be `(compose list->string reverse)'
Yes, I think you are right: the result will be a string, so it has
to be "list->string".
Confusing, when compose goes right to left and -> by convention
left-to-right :-)
Cheers
-- t
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 4 years and 114 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.