guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] wrong description of string-rindex


From: Nala Ginrut
Subject: Re: [PATCH] wrong description of string-rindex
Date: Tue, 10 Sep 2013 19:05:44 +0800

On Tue, 2013-09-10 at 11:49 +0100, Ian Price wrote:
> Nala Ginrut <address@hidden> 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--------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]