On 3/3/07, Rick DeNatale <rick.denatale / gmail.com> wrote:
> On 3/2/07, Martin DeMello <martindemello / gmail.com> wrote:
> > On 3/3/07, Brian Adkins <lojicdotcomNOSPAM / gmail.com> wrote:
> > >
> > > Nice work. I removed ,x from |i,x| on a whim and it still works - 57
> > > bytes! (you have to count file size which as an EOF char)
> > >
> > > 1.upto(?d){|i|i%3<1&&x=:Fizz;puts i%5<1?"#{x}Buzz":x||i}
> >
> > Slight variant, though sadly the same length:
> >
> > 1.upto(?d){|i|puts ["%sBuzz"%x=[:Fizz][i%3]][i%5]||x||i}
> >
> > martin
>
>
> 1.upto(?d){|i|p ["%sBuzz"%x=[:Fizz][i%3]][i%5]||x||i}
>
> Code golfing is against my religious beliefs however.
good decision ;) 'cause you are cheating, the output format of p is
not what is required :(
Robert
>
> --
> Rick DeNatale
>
> My blog on Ruby
> http://talklikeaduck.denhaven2.com/
>
>


-- 
We have not succeeded in answering all of our questions.
In fact, in some ways, we are more confused than ever.
But we feel we are confused on a higher level and about more important things.
-Anonymous