Re: binary search with reference to append

new topic     » goto parent     » topic index » view thread      » older message » newer message
jaygade said...
	hi = (lo > hi && N) ? N : hi -- hi could be > N   

Wait -- did Euphoria get a ternary operator when I wasn't looking? I just did a search and I couldn't find anything on it. Jim seems to be the search master, however.

Nope, we don't. That's probably meant to be the abridged version of this code:

        if lo > hi and length(haystack) > 0 then 
                hi = length(haystack) 
        end if 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu