unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Amirouche Boubekki <amirouche.boubekki@gmail.com>
To: jamil egdemir <unclejamil@gmail.com>
Cc: guile-user <guile-user@gnu.org>
Subject: Re: guile analog of join in python for strings?
Date: Sun, 14 Dec 2014 14:05:40 +0100	[thread overview]
Message-ID: <CAL7_Mo_HJYKtgck+WUn53YU_Tn8oQFg_pc1r+zCd2Y2DVAYi_g@mail.gmail.com> (raw)
In-Reply-To: <CAOa+0ouL9r=E9EHwPyD97NhAVpu7VLDud5tY-jc-4R=8a-bVgw@mail.gmail.com>

Héllo Jamil,

2014-12-14 12:58 GMT+01:00 jamil egdemir <unclejamil@gmail.com>:
>
> Hi Everyone,
>
> Is there an analog of the following (from Python) in Guile?
>
> In [4]: "++GLUE++".join(['this', 'is', 'a', 'test'])
> Out[4]: 'this++GLUE++is++GLUE++a++GLUE++test'
>
> Or perhaps a better question to ask:  What is the
> canonical way to do the same thing in Guile?


I use extensively the guile manual that you can find at
https://www.gnu.org/software/guile/manual/ (pdf or single page, or
work best). I don't know better way.

A lot of procedures start with the name of the type they are applied
to (if not all the time): string-drop, string-take, list-head,
list-tail, bytevector-ref bytevector-set!...

The pdf and ascii version have a procedure index at the end.



  parent reply	other threads:[~2014-12-14 13:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-14 11:58 guile analog of join in python for strings? jamil egdemir
2014-12-14 12:43 ` Marko Rauhamaa
2014-12-14 13:05 ` Amirouche Boubekki [this message]
2014-12-14 13:57   ` jamil egdemir

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAL7_Mo_HJYKtgck+WUn53YU_Tn8oQFg_pc1r+zCd2Y2DVAYi_g@mail.gmail.com \
    --to=amirouche.boubekki@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=unclejamil@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).