Hello,

I'm working on porting underscore.js to clojurescript (at least the parts 
that aren't made redundant by clojurescript already). Mostly it's pretty 
straightforward, but for some of the trickier functions I'm having trouble 
finding an idiomatic translation.

Here's the throttle and bounce functions for example (alongside the 
original js):

https://gist.github.com/2363070

I don't like how I've had to use so many atoms in throttle, but you can't 
set! a local var. Is there a better way to go about this? Maybe I should 
just have one map in an atom, for instance.

- Jason
http://www.varywell.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

Reply via email to