What's the meaning of the following code:

 (([move #(turn % -1) #(turn % 1)]               (wrand [(if (:ant @ahead) 0 
(ranks ahead))                       (ranks ahead-left) (ranks ahead-right)]))  
          loc)))


in https://www.refheap.com/paste/3099  from line 192 to 195?

Sorry to bother you, it's new to me, and it's really hard to Google, as the 
characteristic of the code is not well defined. I'm learning Clojure in 
ad-hoc manner, so I might not be aware some Clojure expression. Giving me 
some pointer to study further would be sufficient. 

By the context, it seems that it's trying to take a move.

Thanks a lot!

Yu

On Tuesday, June 12, 2012 7:19:22 PM UTC+8, Baishampayan Ghose wrote:
>
> >> While I agree that one could use a record in place of a struct, I 
> >> don't think structs are "obsolete", at least not officially. 
> >> 
> > 
> > From http://clojure.org/datatypes: 
> > 
> >>> Overall, records will be better than structmaps for all 
> >>> information-bearing purposes, and you should move such structmaps to 
> >>> defrecord. 
>
> In that case, defstruct, etc. should bear the same warning in 
> docstrings/metadata as well. 
>
> Regards, 
> BG 
>
> -- 
> Baishampayan Ghose 
> b.ghose at gmail.com 
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to