Re: Euphoria sucks at golfing

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

This gets down to 130:

object o=and_bits(gets(0),#DF),l="LLAMA",x=0,y={} 
for i=1 to 5 do 
x=find(l[i],o,x+1)if x=0 then 
?{}abort(0)end if 
y&=x 
end for 
?y 

Readable:

object 
	o = and_bits(gets(0),#DF), 
	l="LLAMA", 
	x=0, 
	y={} 
for i=1 to 5 do 
	x=find(l[i],o,x+1) 
	if x=0 then 
		?{} 
		abort(0) 
	end if 
	y &= x 
end for 
?y 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu