Re: question on func equal_from
equal_from() seem pointless to me as one can do, as you mention in your own
message:
r = match(x,s)=i -- no exertal perenthesis needed
regards,
jacques deschĂȘnes
Salix wrote:
>
> Would
> }}}
<eucode>
> r=equal_from(x,s,i)
> </eucode>
{{{
> be the same as
> }}}
<eucode>
> r=(match(x,s)=i)
> </eucode>
{{{
> but faster and
> the same as
> }}}
<eucode>
> if i>=1 and length(s)>i+length(x)-1 then
> r=equal[x,s[i..i+length(x)-1]]
> else
> r=0
> end if
> </eucode>
{{{
> but simplier?
>
> Why hasn't this also been implemented if we have match_from and find_from?
>
> Cheers,
>
> Salix
|
Not Categorized, Please Help
|
|