Re: A style question
- From: job-271842874@xxxxxxxxxxxxxx
- Date: Tue, 27 Feb 2007 23:27:50 -0500
job-271842874@xxxxxxxxxxxxxx wrote:
Ken Tilton wrote:
Gotcha. Well, I just posted a reply to Paul with a generalization of passing in a 2nd list parameter containing pairs of (integer, string) with the intent of concatenating the strings for all integers that evenly divide i.
Oops, I guess it's getting late. The output doesn't match the list - I mistakenly used the following instead when I ran the program:
(fizz-buzz 12 '((2 "a") (3 "b") (4 "c")))
that's why 4 is ac and 12 is abc ...
So for the list '((2 "a")(3 "b")(5 "c")) we'd have.
1
a
b
ac
5
ab
7
ac
b
a
11
abc
So, 45 would just be "FizzBuzz"
I have had managers lunge acroos the table to get at me.
kt
- References:
- A style question
- From: job-271842874
- Re: A style question
- From: Paul Wallich
- Re: A style question
- From: Ken Tilton
- Re: A style question
- From: job-271842874
- Re: A style question
- From: Ken Tilton
- Re: A style question
- From: job-271842874
- A style question
- Prev by Date: Re: A style question
- Next by Date: Re: A style question
- Previous by thread: Re: A style question
- Next by thread: Re: A style question
- Index(es):
Relevant Pages
|