Re: Euphoria sucks at golfing

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

Here's my attempt:

include std/text.e 
 
object t = lower(gets(0)), 
    L = "llama", 
    X = 0&"     " 
 
for i = 1 to length(L) do 
    X[i+1] = find(L[i],t,X[i]+1) 
    if X[i+1] = 0 then 
        X = {0} 
        exit 
    end if 
end for 
 
? X[2..$] 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu