unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* guile analog of join in python for strings?
@ 2014-12-14 11:58 jamil egdemir
  2014-12-14 12:43 ` Marko Rauhamaa
  2014-12-14 13:05 ` Amirouche Boubekki
  0 siblings, 2 replies; 4+ messages in thread
From: jamil egdemir @ 2014-12-14 11:58 UTC (permalink / raw)
  To: guile-user

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?

-j

-- 
-------------------------------------------------------------
Jamil Egdemir
unclejamil@gmail.com
http://www.power-quant.com
(631) 338-3170 (cell)
-------------------------------------------------------------



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

* Re: guile analog of join in python for strings?
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Marko Rauhamaa @ 2014-12-14 12:43 UTC (permalink / raw)
  To: jamil egdemir; +Cc: guile-user

jamil egdemir <unclejamil@gmail.com>:

> 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?

string-join


Marko



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

* Re: guile analog of join in python for strings?
  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
  2014-12-14 13:57   ` jamil egdemir
  1 sibling, 1 reply; 4+ messages in thread
From: Amirouche Boubekki @ 2014-12-14 13:05 UTC (permalink / raw)
  To: jamil egdemir; +Cc: guile-user

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.



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

* Re: guile analog of join in python for strings?
  2014-12-14 13:05 ` Amirouche Boubekki
@ 2014-12-14 13:57   ` jamil egdemir
  0 siblings, 0 replies; 4+ messages in thread
From: jamil egdemir @ 2014-12-14 13:57 UTC (permalink / raw)
  To: guile-user

Amirouche and Marko,

Thank you for the pointer to string-join.  I'm still trying to
familiarize myself with the guile reference manual and I just seem to
have missed it while scanning.

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

I'll be sure to look this one over.

Thanks again guys.

-jamil



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

end of thread, other threads:[~2014-12-14 13:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2014-12-14 13:57   ` jamil egdemir

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