From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Amirouche Boubekki Newsgroups: gmane.lisp.guile.user Subject: Re: guile analog of join in python for strings? Date: Sun, 14 Dec 2014 14:05:40 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1418562383 1249 80.91.229.3 (14 Dec 2014 13:06:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Dec 2014 13:06:23 +0000 (UTC) Cc: guile-user To: jamil egdemir Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Dec 14 14:06:15 2014 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y08sF-0007Bx-MF for guile-user@m.gmane.org; Sun, 14 Dec 2014 14:06:11 +0100 Original-Received: from localhost ([::1]:35922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y08sE-0006vb-VR for guile-user@m.gmane.org; Sun, 14 Dec 2014 08:06:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y08s7-0006vW-7R for guile-user@gnu.org; Sun, 14 Dec 2014 08:06:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y08s6-00088I-BE for guile-user@gnu.org; Sun, 14 Dec 2014 08:06:03 -0500 Original-Received: from mail-yh0-x233.google.com ([2607:f8b0:4002:c01::233]:59573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y08s6-000888-61 for guile-user@gnu.org; Sun, 14 Dec 2014 08:06:02 -0500 Original-Received: by mail-yh0-f51.google.com with SMTP id a41so4426408yho.24 for ; Sun, 14 Dec 2014 05:06:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=EwsEU4R2KrxPjH+GDOuda4m1VbNMakz6jHx5yPea9ls=; b=NcH858qsIdm4D/lQcgIm4tMenfhKDQmQDwsyAMGrRJCmqqkHqFt7Gs9uYVKqtk93cN wxaNKzlOzeuUiHwaPEcfzmOvCJ+0Msfvxf3QlNMxmlfbG0AUo3xzdRDTHcc1gvUfAkQH 05rmgcEh7RuEZjzik0vXO5r3CInNT9JO26HIQYK50zZcgUFwFM5sd2n0Viy8yn/6KFMi 3QDh3X7AdtKEcBy5uyMg7oGPyApbpIuKihlMGQ1ibq4JYdbV9WgigwFKQwmVNviUQ/k+ uGCzGCj6218fRw/8qFK+Tm6KFz0yg/wD57KSjRDqLv7gb8TBPGWhkJdMw38F8G3NLXLI sdgQ== X-Received: by 10.236.20.226 with SMTP id p62mr18541065yhp.97.1418562361140; Sun, 14 Dec 2014 05:06:01 -0800 (PST) Original-Received: by 10.170.188.204 with HTTP; Sun, 14 Dec 2014 05:05:40 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c01::233 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11669 Archived-At: H=C3=A9llo Jamil, 2014-12-14 12:58 GMT+01:00 jamil egdemir : > > 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.