; is not really necessary as is the default)
>
> There are lots of ways to construct maps eg:
> user=> (into {} [[1 2] [3 4]])
> {3 4, 1 2}
> user=> {1 2 3 4}
> {1 2, 3 4}
> user=> (hash-map 1 2 3 4)
> {1 2, 3 4}
>
> Regards,
> Tim.
>
> On Feb 11, 8:52 am
the import count reduced as the game grew and I separated it
> into various files, so I wouldn't worry about that too much.
> Personally, I've always been a fan of explicit imports so I know
> what's going on when I reference a class name :)
>
> -Matt
>
> On Feb 9,
Thanks !
On 10 fév, 00:36, Timothy Pratley wrote:
> > Will i get used to the nested 'if' blocks someday ? Any way to write
> > the equivalent of a switch case here, if only to improve
> > readibility ?
>
> You could use cond:
>
> (cond
> (not (blocked? screen new_x new_y)) [(assoc player :y ne
of imports is indeed a
> really interesting feature I would like to add (I intend to first use a lot
> clojure for replacing bits of java in existing java projects, so our needs
> will match in this area :-).
>
> Cheers,
>
> --
> Laurent
>
> 2009/2/9 phtrivier
of imports is indeed a
> really interesting feature I would like to add (I intend to first use a lot
> clojure for replacing bits of java in existing java projects, so our needs
> will match in this area :-).
>
> Cheers,
>
> --
> Laurent
>
> 2009/2/9 phtrivier
rking convestion of a Scoller
example. Still, there are some things that I don't find very elegant,
or where I'm pretty sure to be reinventing some wheel.
Code is here :
http://tinyurl.com/dj4l9z
or
git://github.com/phtrivier/clj-slick-tank.git
* The game is tile-based. I need to build up