Re: Casting SPELs in Clojure

2012-07-23 Thread Joe Hughes
All, I figured it out. Still trying to get Functional Programming ideas in my head. Regards, Joe On Friday, June 29, 2012 11:11:56 AM UTC-5, Joe Hughes wrote: All, I've been playing with Clojure and found this website, http://www.lisperati.com/clojure-spels/casting.html. Typed the

Re: Casting SPELs in Clojure

2012-07-23 Thread Denis Labaye
Hi, On Mon, Jul 23, 2012 at 5:38 PM, Joe Hughes jwhughe...@gmail.com wrote: All, I figured it out. Still trying to get Functional Programming ideas in my head. The macro defspel is not functional programming, it's dark Lisp's macro Voodoo. I would not advise starting Clojure with

Re: Casting SPELs in Clojure

2012-07-23 Thread Joe Hughes
Denis: Thanks for the link. Looks interesting. Between it and the Euler Project, I should continue learning Clojure. Regards, Joe On Monday, July 23, 2012 10:53:56 AM UTC-5, Denis Labaye wrote: Hi, On Mon, Jul 23, 2012 at 5:38 PM, Joe Hughes jwhughe...@gmail.com wrote: All, I

Re: Casting SPELs in Clojure

2012-07-23 Thread Denis Labaye
On Mon, Jul 23, 2012 at 6:11 PM, Joe Hughes jwhughe...@gmail.com wrote: Denis: Thanks for the link. Looks interesting. Between it and the Euler Project, I should continue learning Clojure. Euler is also great, but 4clojure is specifically oriented towards Clojure, and the creators of

Re: casting spels in clojure problem

2011-12-12 Thread Kevin Ilchmann Jørgensen
If this is your code: http://www.lisperati.com/clojure-spels/code.html Then (spel-print (describe-paths 'living-room game-map)) will work. spel-print takes a list that is returned from describe-paths. /Kevin On Mon, Dec 12, 2011 at 7:51 AM, jayvandal s...@ida.net wrote: I am trying castin

casting spels in clojure problem

2011-12-11 Thread jayvandal
I am trying castin spels in clojure and I get this error. What does it mean?? user= (spel-print describe-paths 'living-room game-map) java.lang.IllegalArgumentException: Wrong number of args (3) passed to: user$spel-print (NO_SOURCE_FILE:0) == code is

Re: casting spels in clojure problem

2011-12-11 Thread Stuart Campbell
Hello, You'll need to include the source of the spel-print function, i.e. the (defn spel-print ...) part of the code. The error means that you're calling spel-print with either too many or too few arguments. But we can't tell unless you provide the code for that function :) Regards, Stuart On