Re: Clojure Applets: Tutorial

2009-10-13 Thread DavidF
It does work in Mac OS X 10.6.1 with Safari 4.0.3. I see a bordered yellow box with "Hello World!" I'll try it later when I'm near a 10.5 box and see if I can figure out the problem. On Oct 13, 8:35 am, "andi.xeno...@googlemail.com" wrote: > I could test only on Windows, Linux and Solaris (no

Re: can I make this faster (and leaner) ?

2009-10-30 Thread DavidF
Try this: (def *valid-chars* [ \a \b \c \d \e \f \g \h \i \j \k \l \m \n \o \p \q \r \s \t \u \v \w \x \u \z \0 \1 \2 \3 \4 \5 \6 \7 \8 \9 ] ) (defn generate-key [keylength] (for [x (range keylength)] (nth *valid-chars* (rand-int (count *valid- c