From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] wrong description of string-rindex Date: Tue, 10 Sep 2013 19:05:44 +0800 Organization: HFG Message-ID: <1378811144.4642.32.camel@Renee-desktop.suse> References: <1378801326.4642.20.camel@Renee-desktop.suse> <87zjrllznp.fsf@Kagami.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1378811169 8430 80.91.229.3 (10 Sep 2013 11:06:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Sep 2013 11:06:09 +0000 (UTC) Cc: guile-devel@gnu.org To: Ian Price Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Sep 10 13:06:12 2013 Return-path: Envelope-to: guile-devel@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 1VJLlo-00050I-2n for guile-devel@m.gmane.org; Tue, 10 Sep 2013 13:06:08 +0200 Original-Received: from localhost ([::1]:56986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJLln-0000A2-L4 for guile-devel@m.gmane.org; Tue, 10 Sep 2013 07:06:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJLld-00009r-7L for guile-devel@gnu.org; Tue, 10 Sep 2013 07:06:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJLlU-00053E-RC for guile-devel@gnu.org; Tue, 10 Sep 2013 07:05:57 -0400 Original-Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]:33183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJLlU-000536-FL for guile-devel@gnu.org; Tue, 10 Sep 2013 07:05:48 -0400 Original-Received: by mail-pa0-f52.google.com with SMTP id kq13so7529687pab.39 for ; Tue, 10 Sep 2013 04:05:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :organization:content-type:mime-version:content-transfer-encoding; bh=iVMUbslGQ06yDpzbt7hB5cjhPv1EakZ5I1ecwkEW6+8=; b=vAHBqGqGcm22gJiBLVK01u6vUEtG1PT+Of9ZODsa7cGdizT06oH1D9SKHF41JwVu7t fFuxhiASBeW5r9avac7dfgvz/Ia7g/eSDhEad8mXCTGTy+cve5hzGmT05Y9ypFqhbR+v 6P1sv7JuQw4zItCi2QiwROZHnUd8rjbhtGuwLN9Qru/SMRyB9Q37cGmttpntfs9WvgDx IaBJloK0Fl6wjRbkVRFYO30hkpH6wXeLDhzCuXaAZnBnMPPwg133kn8Hg3qQOqexeXC3 9mX/ow67zBzKKyvOcX0PcM26kibuTa+sUk1sAa53hafIMRFfnuk23DL0m2IukL6pjgT3 9RLA== X-Received: by 10.68.108.3 with SMTP id hg3mr24236258pbb.91.1378811146903; Tue, 10 Sep 2013 04:05:46 -0700 (PDT) Original-Received: from [147.2.147.112] ([203.192.156.9]) by mx.google.com with ESMTPSA id om2sm22267481pbc.30.1969.12.31.16.00.00 (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 10 Sep 2013 04:05:46 -0700 (PDT) In-Reply-To: <87zjrllznp.fsf@Kagami.home> X-Mailer: Evolution 3.4.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::234 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:16628 Archived-At: On Tue, 2013-09-10 at 11:49 +0100, Ian Price wrote: > Nala Ginrut writes: > > > - Scheme Procedure: string-rindex s char_pred [start [end]] > > Search through the string S from right to left, returning the index > > of the last occurrence of a character which > > ------ > > It's actually 'first occurrence', according to the activity of function. > > And it's nonsense for 'last occurrence' since string-index does the same > > work. > I'm going to be honest, I don't think either of these are particularly > great wordings. They are both misleading in different ways, I feel. > Rather than 'first' or 'last', it would be better to use 'leftmost' and 'rightmost' > It's the word used in srfi-13 ----------------------------------cut-------------------------------- string-index (string-index-right) searches through the string from the left (right), returning the index of the first occurrence of a character which ----------------------------------end--------------------------------