Re: question on func equal_from

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu