Re: A style question



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

.



Relevant Pages

  • Re: Elementary string-parsing
    ... "return" and passing arguments). ... stack at the end; hence they appear sort of global. ... "ValueError" if the string isn't a representation of a number? ... Convert a string or a number to floating point. ...
    (comp.lang.python)
  • Re: WindowsIdentity - Invalid token; it cannot be duplicated
    ... Because the login method will be used by asp.net application and also used ... passing the token to Login method and it tries to get the Priniciple. ... IntPtr iToken, string domainName, string userName) ... and why do you have to pass tokens around?? ...
    (microsoft.public.dotnet.security)
  • Re: C String Interop
    ... char) on passing to C. ... to C as a string, ... override the conversion for cases where that wasn't intended. ... But I would oppose special-casing of argument passing ...
    (comp.lang.fortran)
  • Re: Sockets newbie - how do I pass structured data around?
    ... >mean that passing a chunk of memory ) ... If the two systems were produced by the same code and compiler, ... end knows how long the string is and the string encoding. ... This is one case where defining user type variables like BYTE, WORD, ...
    (microsoft.public.vc.mfc)
  • Re: Using a regexp as field separator does not work!
    ... even ' *' does not match the null string ... which it doesn't and I can't think of any reason for that. ... But, rummaging through gawk source distribution, I found a note in the NEWS ...
    (comp.lang.awk)