From: Brad Phelan Date: 2007-06-07T20:45:04+09:00 Subject: Re: [SOLUTION][QUIZ] FizzBuzz (#126) [solution #2] MenTaLguY wrote: > On Thu, 2007-06-07 at 02:25 +0900, Brad Phelan wrote: >> Perhapps you are doing it but I was unable to parse the >> whole algorithm out and figure out exactly what all the lambdas >> you use do. > > If it helps, what a lot of the math stuff does is create lists of the > length specified by a number, manipulate those, and then count their > lengths to get back to a number. For instance, subtraction would be: > > SUBTRACT = LAMBDA2 { |m,n| LENGTH[DROP[n][MAKE_LIST[ID][m]]] } > > (here, ID is just used as a dummy value to populate the list with) > > -mental Thanks for the pointers. I don't have too much time today to think about this ( public holiday and I'm going out in the sun ) but I know when I do I'll want to know the concept here behind lists. Are they real lists as in Ruby Array which I doubt or abstract concepts like the Church Numerals. I'll take a look Monday and see if I can understand more. Regards Brad