Re: ClojureScript One - Getting Started with ClojureScript

2012-02-07 Thread Tom Chappell
This problem is caused by the underlying Java library that is used to launch the browser, which, under linux, only launches the proper default browser if gnome is installed. Install enough gnome and it will start to work. -Tom On Jan 25, 10:49 am, Raju Bitter rajubit...@googlemail.com wrote:

Re: Two Slightly Different Versions Using lazy-seq: One works, One doesn't. Why?

2012-01-09 Thread Tom Chappell
For some reason I never saw either my first post nor your answer to it. It was my first post to the group, so I thought maybe it had been swallowed up (maybe the moderators had to approve my membership before I could post or something), so after waiting a day, I posted again. And...not 5 minutes

Re: Two Slightly Different Versions Using lazy-seq: One works, One doesn't. Why?

2012-01-09 Thread Tom Chappell
For some reason I never saw either my first post nor your answer to it. It was my first post to the group, so I thought maybe it had been swallowed up (maybe the moderators had to approve my membership before I could post or something), so after waiting a day, I posted again. And...not 5 minutes

Problem with :pre checks against nil in 1.3.0?

2012-01-09 Thread Tom Chappell
Ok, I've got a couple thousand lines of Clojure under my belt, but this has me stumped, unless it's a compiler etc. issue. If I'm missing something dumb, what is it, please? I have a function that is failing a not-nil precondition. Here are four versions of the same test; only #3 works

Odd Behavior of lazy-seq

2012-01-08 Thread Tom Chappell
I was implementing a lazy infinite Fibonacci sequence as an exercise, and it wasn't working. I remembered that I had seen a working example somewhere, Googled it, and up it came. And it works, but mine, while similar (and I've modified the two versions to make them even more similar except for

Two Slightly Different Versions Using lazy-seq: One works, One doesn't. Why?

2012-01-08 Thread Tom Chappell
Trying to get experience working with lazy-seq, after several earlier successful attempts, I was implementing a lazy infinite Fibonacci sequence as a lazy-seq (having already implemented it in a greedy way before), and it wasn't working. I remembered that I had seen a working example somewhere,