bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* [PATCH] Add xcons example.
@ 2022-06-16  4:31 jgart
  2022-06-16 15:47 ` Bruno Haible
  0 siblings, 1 reply; 3+ messages in thread
From: jgart @ 2022-06-16  4:31 UTC (permalink / raw
  To: bug-gnulib; +Cc: jgart

* doc/ref/srfi-modules.texi (SRFI-1): Add xcons example.
---
 doc/ref/srfi-modules.texi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/doc/ref/srfi-modules.texi b/doc/ref/srfi-modules.texi
index 2e66bafb9..7aeacd888 100644
--- a/doc/ref/srfi-modules.texi
+++ b/doc/ref/srfi-modules.texi
@@ -262,6 +262,10 @@ Like @code{cons}, but with interchanged arguments.  Useful mostly when
 passed to higher-order procedures.
 @end deffn
 
+@example
+(xcons '(u i x) 'g) @result{} (g u i x)
+@end example
+
 @deffn {Scheme Procedure} list-tabulate n init-proc
 Return an @var{n}-element list, where each list element is produced by
 applying the procedure @var{init-proc} to the corresponding list
-- 
2.36.1



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

* Re: [PATCH] Add xcons example.
  2022-06-16  4:31 [PATCH] Add xcons example jgart
@ 2022-06-16 15:47 ` Bruno Haible
  2022-06-16 22:06   ` jgart
  0 siblings, 1 reply; 3+ messages in thread
From: Bruno Haible @ 2022-06-16 15:47 UTC (permalink / raw
  To: jgart; +Cc: bug-gnulib

> * doc/ref/srfi-modules.texi (SRFI-1): Add xcons example.

You surely intended to send this to a guile mailing list?





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

* Re: [PATCH] Add xcons example.
  2022-06-16 15:47 ` Bruno Haible
@ 2022-06-16 22:06   ` jgart
  0 siblings, 0 replies; 3+ messages in thread
From: jgart @ 2022-06-16 22:06 UTC (permalink / raw
  To: Bruno Haible; +Cc: bug-gnulib

On Thu, 16 Jun 2022 17:47:36 +0200 Bruno Haible <bruno@clisp.org> wrote:
> > * doc/ref/srfi-modules.texi (SRFI-1): Add xcons example.
> 
> You surely intended to send this to a guile mailing list?

Yes, why do you think not? Should it say guile instead of guix or something else?

I'd like to add code examples for all the guile API library functions.

I'm mostly sending a PR now to test out the review process for guile and to share my plans for updating the documentation with explicit code examples.

It would be a large project of adding in all the code examples to the manual so wanted to test with one function and get feedback from the community first.

wdyt,

jgart


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

end of thread, other threads:[~2022-06-16 22:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-16  4:31 [PATCH] Add xcons example jgart
2022-06-16 15:47 ` Bruno Haible
2022-06-16 22:06   ` jgart

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