Re: "Elegant tools deserve elegant solutions." -- L. E. Gant

2011-08-08 Thread Resty Cena
Hi, Ken, Thanks for the suggestion. As I was looking at a suffix tree, it suddenly struck me that the following strategy may do just as well: 1. Use rest and next to generate the tentative suffix sets, thus for "directional", it will give the set of #{irectional rectional ectional ctional tiona

Re: "Elegant tools deserve elegant solutions." -- L. E. Gant

2011-08-08 Thread Resty Cena
Hi, Andreas, << I don't quite understand what you mean by "I’m having a hard time thinking through the process of generating the candidate suffix set using set forms" >> It is my usual roundabout way of saying "I don't know how to do this." ;) I'm looking at your code as we speak. Thanks, Tuba

Re: passing value to functions

2011-07-28 Thread Resty Cena
Hi, Masanori, Yes, I noticed the similarity. I'm using Laurent's 'manual way' for now. I'll look at Alan's and Laurent's more concise solution in a few days. The "manual way" is easy to debug as all I have to do is println the intermediate results. Thanks. Tuba 2011/7/28 OGINO Masanori > Lauren

Re: passing value to functions

2011-07-28 Thread Resty Cena
Hi, Alan, I can see that your suggestion will work. The key, as I understand it, is the embedding of functions, thus: (fix-ize (fix-ou word))) which is indeed a Lisp-y way of doing things. It seems imperatively I miss elegant one-liners such as this. I'm right now close to getting Laurent's ap

Re: passing value to functions

2011-07-28 Thread Resty Cena
Hi, Thorsten, Yes, you're right, once inside a function, the function is already being applied. I mean that within the function, there's a test for whether the input variable needs to be changed or not. Sort of vacuous application if conditions are not met. Yes, an enriched facility for pattern m

Re: (doc more-examples)

2011-07-16 Thread Resty Cena
Or an option for more extended doc when launching REPL for those who need the extra documentation more than performance during development, or maybe a searchable dictionary panel at the left hand side of REPL, ala some versions of Ruby's irb. Meanwhile, thanks for the pointer to the clojure quickr

Re: Noobie needs help

2011-07-14 Thread Resty Cena
That works! Awesome! On Thu, Jul 14, 2011 at 5:17 AM, Jonathan Fischer Friberg < odysso...@gmail.com> wrote: > I see I misunderstood the question, sorry about that. > > What you want is a macro: > > (defmacro string-maker [string-name the-string] > `(def ~(symbol string-name) ~the-string)) > >