unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#34457: GNU Guile: Error in docstring of proc reverse-list->string
@ 2019-02-12 11:34 Андрей
  2019-02-13  7:10 ` tomas
  2021-03-26  0:09 ` Calvin Heim
  0 siblings, 2 replies; 3+ messages in thread
From: Андрей @ 2019-02-12 11:34 UTC (permalink / raw)
  To: 34457

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)'

I discovered it in my Guile 2.0 installation and as I checked it is
still this way in 2.9 branch.

The line itself is here:
http://git.savannah.gnu.org/cgit/guile.git/tree/libguile/srfi-13.c#n335

Sorry if it is meant this way and it's a false alarm :)

- Andrey Ivanov





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#34457: GNU Guile: Error in docstring of proc reverse-list->string
  2019-02-12 11:34 bug#34457: GNU Guile: Error in docstring of proc reverse-list->string Андрей
@ 2019-02-13  7:10 ` tomas
  2021-03-26  0:09 ` Calvin Heim
  1 sibling, 0 replies; 3+ messages in thread
From: tomas @ 2019-02-13  7:10 UTC (permalink / raw)
  To: 34457

[-- Attachment #1: Type: text/plain, Size: 782 bytes --]

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 #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#34457: GNU Guile: Error in docstring of proc reverse-list->string
  2019-02-12 11:34 bug#34457: GNU Guile: Error in docstring of proc reverse-list->string Андрей
  2019-02-13  7:10 ` tomas
@ 2021-03-26  0:09 ` Calvin Heim
  1 sibling, 0 replies; 3+ messages in thread
From: Calvin Heim @ 2021-03-26  0:09 UTC (permalink / raw)
  To: 34457-done

Fixed by Rob Browning in commit 859cd4eb9bde1a67f1e85aa09b7a18b9d567c47c.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-26  0:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-12 11:34 bug#34457: GNU Guile: Error in docstring of proc reverse-list->string Андрей
2019-02-13  7:10 ` tomas
2021-03-26  0:09 ` Calvin Heim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).