Re: ClojureScript + Overtone

2012-02-23 Thread Despite
This is great. I'm amazed at how easy you're projects have made it to create web interfaces. One note for anybody else trying to go along with this -- skip the piano portions. It seems we've knocked out the site where Overtone grabs the samples. Now every time I do lein run overtone tries and f

Re: Looking for parser generator library

2012-02-15 Thread Despite
> Haskell has a parser library named for a distance of approximately > three centimetres? :) Not that it's pertinent, but a parsec is 31 trillion kilometers. Did you massively misplace a decimal? :) -- You received this message because you are subscribed to the Google Groups "Clojure" group. T

Re: not= counterintuitive?

2011-09-03 Thread Despite
On Sep 2, 4:48 pm, ax2groin wrote: > That's what I get for posting a question while feeding a 1-year-old > child and getting ready to leave for lunch. > > I was trying to put together a (for) construct to output the > combinations of a set, and my logic was flawed. > > Here's what I really wanted

Re: Exception calling nth on Sets

2011-08-15 Thread Despite
"java.lang.UnsupportedOperationException: nth not supported on this type: PersistentHashSet". So, the fact that it works at all in Clojurescript seems to be a bug as well. On Aug 15, 1:13 am, "Meikel Brandmeyer (kotarak)" wrote: > Hi, > > Am Sonntag, 14. August 2011 1

Exception calling nth on Sets

2011-08-14 Thread Despite
In Clojurescript, calling rand-nth on an empty Set results in an "Index out of bounds" exception, whereas calling it on an empty Vector results in nil. ClojureScript:cljs.user> (rand-nth (set [])) "Error evaluating:" (cljs.core.prn (rand-nth (set []))) :as "cljs.core.prn.call(null,cljs.core.rand_n

Re: XML navigation puzzles

2011-02-04 Thread Despite
I like to use zip and zip-filter with xml files. For example (suppose clojure.zip is aliased as zip and clojure.contrib.zip-filter.xml is aliased as zf): (def bo-zip (zip/xml-zip (xml/parse "http://api.twitter.com/1/statuses/ friends/barackobama.xml" Then I can use zip-filters to get the info I