Re: ANN: ClojureScript 1.8.51

2016-05-30 Thread Peter West
Running the Quick Start, I get the "No 'xpc' param provided to child iframe." error from, I think, start-evaluator in cljs.clojure.browser.repl.cljs when I try to get the repl running. This is in both Safari and Chrome. Any idea what I'm doing wrong? On Monday, 25 April 2016 21:39:57 UTC+10,

Re: ANN: ClojureScript 0.0-3058, Enhanced REPLs, faster compile times

2015-03-12 Thread Peter West
On Tuesday, 10 March 2015 09:41:45 UTC+10, David Nolen wrote: > ClojureScript, the Clojure compiler that emits JavaScript source code. > > New release version: 0.0-3058 > > The new Quick Start is essential reading even if you are a relatively > experienced ClojureScript developer. I did this,

Re: ANN: ClojureScript 0.0-3058, Enhanced REPLs, faster compile times

2015-03-12 Thread Peter West
On Wednesday, 11 March 2015 23:38:40 UTC+10, Peter West wrote: > On Tuesday, 10 March 2015 09:41:45 UTC+10, David Nolen wrote: > > ClojureScript, the Clojure compiler that emits JavaScript source code. > > > > New release version: 0.0-3058 > > > > The new Quic

Re: (eval `(def ~(symbol varname) lineseq)

2014-04-25 Thread Peter West
I've just managed to get back to this. On Tuesday, 8 April 2014 17:06:31 UTC+10, Carlo wrote: > > On Mon, Apr 07, 2014 at 11:23:31PM -0700, Peter West wrote: > > On Tuesday, 8 April 2014 12:20:16 UTC+10, Carlo wrote: > > > Your issue here is that the symbol "li

Re: (eval `(def ~(symbol varname) lineseq)

2014-04-07 Thread Peter West
Carlo, See below. On Tuesday, 8 April 2014 12:20:16 UTC+10, Carlo wrote: > > On Mon, Apr 07, 2014 at 04:08:03AM -0700, Peter West wrote: > > I'm trying to understand the difference between two alternatives in the > > following code that reads from a resource file.

Re: (eval `(def ~(symbol varname) lineseq)

2014-04-07 Thread Peter West
to > returns the symbol lineseq. But since lineseq was a local, it is no longer > in scope. What you actually wanted was to def "cards" to the value of > lineseq (which is what the unquote ~ does). > > marc > > On Mon, Apr 7, 2014 at 7:08 AM, Peter West > >

(eval `(def ~(symbol varname) lineseq)

2014-04-07 Thread Peter West
I'm trying to understand the difference between two alternatives in the following code that reads from a resource file. (defn vcf-res-reader > > [res] > > (->> res > >io/resource > >io/reader)) > > >> (defn lines-only > > [varname prom resource] > > (with-open [r (vcf-res-

Re: seq? empty? and every?

2012-12-28 Thread Peter West
Thanks for that BG. Makes sense. -- > 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

seq? empty? and every?

2012-12-26 Thread Peter West
> > user=> (seq? []) > > false > > user=> (empty? []) > > true > > user=> (every? seq? []) > > true > > user=> (every? empty? []) > > true > > user=> > > Can someone explain this to me? (1.4) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post

Re: Merry Christmas Everybody

2012-12-26 Thread Peter West
And me (belatedly). Well, there are twelve days of Christmas! On Wednesday, 26 December 2012 19:27:35 UTC+10, Matthew wrote: > > Merry Christmas from me too! > > (source ) > -- You received this message because you are subscribed to

Re: Confused about comp

2012-12-17 Thread Peter West
Thanks. That's much better. On Monday, December 17, 2012 8:53:22 PM UTC+10, Dick Davies wrote: > > > If you're using leiningen (2 at least, maybe 1?) then a > > (user/clojuredocs apply) > > is a much better "how do I drive this thing?" than a straight (doc ...) > call. > -- You received thi

Re: Confused about comp

2012-12-16 Thread Peter West
an't imagine at the moment, for a function that acts just like a funcall, so that (funcall f [i]) is exactly equivalent to (f [i]), I guess you are out of luck. I don't know how other lisps deal with "linearising" argument lists? I'd be interested to hear. On Sunday, 16 De

Re: Confused about comp

2012-12-15 Thread Peter West
Hi Mark and Baishampayan, I can see what difference it makes, but I can't get a handle on the rationale. For instance, I found this discussion: http://stackoverflow.com/questions/1257028/why-should-i-use-apply-in-clojure It starts with a quote from a Rich Hickey blog post, as follows. > A big d

Re: Confused about comp

2012-12-15 Thread Peter West
On Saturday, 15 December 2012 17:42:05 UTC+10, puzzler wrote: > > (I took the liberty of replacing #(= \a %) with #{\a}) > > On Fri, Dec 14, 2012 at 11:37 PM, Mark Engelberg > > > wrote: > >> (comp (partial apply str) (partial filter #{\a})) >> > > Puzzler, Your change replaces the single argume

Re: Confused about comp

2012-12-15 Thread Peter West
ns are "applied" simple by expressing their form. On Saturday, 15 December 2012 18:52:26 UTC+10, Baishampayan Ghose wrote: > > The apply is needed here because filter is going to return a sequence > of strings and you really want to `apply' str on it. > > -BG &g

Re: Confused about comp

2012-12-15 Thread Peter West
On Saturday, 15 December 2012 18:09:13 UTC+10, Peter West wrote: > > > > On Saturday, 15 December 2012 17:42:05 UTC+10, puzzler wrote: >> >> (I took the liberty of replacing #(= \a %) with #{\a}) >> >> On Fri, Dec 14, 2012 at 11:37 PM, Mark Engelberg wr

Re: Confused about comp

2012-12-15 Thread Peter West
On Saturday, 15 December 2012 17:42:05 UTC+10, puzzler wrote: > > (I took the liberty of replacing #(= \a %) with #{\a}) > > On Fri, Dec 14, 2012 at 11:37 PM, Mark Engelberg > > > wrote: > >> (comp (partial apply str) (partial filter #{\a})) >> > > You're most welcome. Thank you for this. A co

Confused about comp

2012-12-14 Thread Peter West
I want to compose and apply a function as follows: A> (= ( "abBcdAa">) "aa") I can filter the argument using filter #(= \a %) . If I (def s (filter #(= \a %) "abBcdAa")) I get (\a \a\). If I (str s) I get "clojure.lang.LazySeq@fe1" If I (apply str s) i get "aa" But what I am trying to do is A