Re: Two quick questions on functions...

2009-03-10 Thread Jeff Rose
Rich wrote: > I'm relatively new to Clojure, and I just want to make sure I > understand things correctly. There are two issues that I'm struggling > with. Neither is major, but if there is a good solution, I'd like to > find out. > > 1) You must define a method before you call it from another fun

Re: Two quick questions on functions...

2009-03-10 Thread David Sletten
On Mar 9, 2009, at 11:11 PM, Rich wrote: > 1) You must define a method before you call it from another function. > Stylistically, I prefer to define helper functions after the main > function, but that seems to cause errors. If I move them in front of > the main function, the errors go away. I do

Re: Two quick questions on functions...

2009-03-10 Thread Paul Drummond
Hi Rich, for your first issue "declare" does exactly what you want. => (doc declare) - clojure.core/declare ([& names]) Macro defs the supplied var names with no bindings, useful for making forward declarations. nil Cheers, Paul. 2009/3/10 Rich : > > I'm relatively n

Two quick questions on functions...

2009-03-10 Thread Rich
I'm relatively new to Clojure, and I just want to make sure I understand things correctly. There are two issues that I'm struggling with. Neither is major, but if there is a good solution, I'd like to find out. 1) You must define a method before you call it from another function. Stylistically, I