bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#34457: GNU Guile: Error in docstring of proc reverse-list->string


From: tomas
Subject: bug#34457: GNU Guile: Error in docstring of proc reverse-list->string
Date: Wed, 13 Feb 2019 08:10:48 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

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

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]