Re: Euphoria sucks at golfing

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

This works in Phix (105 characters)

object t=lower(gets(0)),L="llama",i=0for j=1to 5do i=find(L[j],t,i+1)L[j]=i end for?L[1..-not find(0,L)] 

Notes: lower() is an autoinclude, I overwrite L with the result as we go, and finally use negative indexes.

Pete

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

Search



Quick Links

User menu

Not signed in.

Misc Menu