Re: Bug in clojure.contrib.core/-?> (improper quoting?)

2010-12-08 Thread wlr
> Effective communication tip: Please preserve links in responses, so that when > somebody is trying to track down issues they don't have to work back through > the thread to find links. > Effective communication tip #2: Please don't top post, so that when somebody is trying to track down issues

Re: set/select vs. other set functions: argument order and ->

2010-02-04 Thread wlr
Well, I think you've exposed an inconsistency in the signature of clojure.set/select vis-a-vis the "collection first, sequence last" principles here: http://groups.google.com/group/clojure/msg/a8866d34b601ff43 It seems that the collection function clojure.set/select is patterned after the sequenc

Re: set/select vs. other set functions: argument order and ->

2010-02-03 Thread wlr
On Feb 3, 6:41 pm, Tayssir John Gabbour wrote: > ;; Works, but is ugly. > (let [xset  #{{:a 1, :b 1, :c 1} >               {:a 2, :b 2, :c 2} >               {:a 3, :b 3, :c 3}}] >   (project (select #(= (:a %) 1) xset) >            [:b :c])) > > So what I currently do is this: > > ;; Works, with

Re: set/select vs. other set functions: argument order and ->

2010-02-03 Thread wlr
Can you somehow use ->> ? user> (->> #{1 2 3 4} (clojure.set/select even?)) #{2 4} Walt -- 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 -

Re: Inconsistent behavior in 1.2.0-master w.r.t. previous versions

2010-01-25 Thread wlr
Works for me. user> [*clojure-version* (meta (second '(a #^b c)))] [{:interim true, :major 1, :minor 2, :incremental 0, :qualifier "master"} {:tag b}] -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@google

Re: Dependency management

2010-01-21 Thread wlr
On Jan 21, 8:37 pm, Sean Devlin wrote: > Clojure stresses immutability, and dependencies should be no > different.  I'd say it's bad form to force a dependency on an > unreleased version of Clojure, because it's a moving target.  Granted, BTW, Clojure also stresses *controlled mutability*. I'd

Re: gen-class & bytecode for method implementation

2009-07-27 Thread wlr
On Jul 27, 8:25 pm, John Newman wrote: > I'm new to Clojure so bare with me, Sorry, can't resist... you must be seeking the naked truth. :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: doseq vs. map

2009-04-03 Thread wlr
On Apr 3, 3:29 am, Eric Tschetter wrote: > That is, "map" is more geared towards type "conversion" of the > elements in a collection, but it is only converting the elements in > the collection, not the collection itself. > > (some ellided text here...) > > Reduce (also known as fold left) consume

Re: Suggestion for Java Clojure code, use of checkstyle or code formatter

2009-03-24 Thread wlr
On Mar 24, 7:46 am, Mark Volkmann wrote: > +1 for running all the code under src/jvm through some code formatter > that uses something at least similar to the Sun Java conventions. > > On Mon, Mar 23, 2009 at 11:59 PM, BerlinBrown wrote: > > > I was curious about how some of the clojure code wor

Re: :use feature requests

2009-02-23 Thread wlr
On Feb 23, 2:59 pm, Chouser wrote: > On Mon, Feb 23, 2009 at 2:33 PM, Stephen C. Gilardi wrote: > > How about this as an alternative in the same spirit as your proposal: > > >        - change the name of :require to :use -- :use with no options changes > > from an implicit "refer all" to an impl

Re: Bug with clojure eval: ExceptionInInitializerError

2009-02-19 Thread wlr
On Feb 19, 8:18 pm, Jeffrey Chu wrote: > user=> (eval (lazy-identity '(apply + '(1 2 3 > java.lang.ExceptionInInitializerError (NO_SOURCE_FILE:0) ~/java/clojure $ svn info Path: . URL: http://clojure.googlecode.com/svn/trunk Repository Root: http://clojure.googlecode.com/svn Repository UUID:

Re: Libraries? model and generic-functions

2009-02-18 Thread wlr
On Feb 17, 10:20 am, Raffael Cavallaro wrote: > I am very interested in both of these subsystems and would love to see > you package them as clojure.contrib libraries. Hopefully others feel > the same and we'll see an announcement for them here soon. +1 --~--~-~--~~~

Re: Fully lazy sequences are coming - feedback wanted!

2009-02-16 Thread wlr
On Feb 16, 12:06 pm, Jeffrey Straszheim wrote: > You're right, of course, but in life compromises must happen.  If Rich > proceeds *with no regard* for Pragmatic's needs, they have a recourse which > is simply no Clojure book.  Or a Clojure book that has broken examples. > Agreed. I'm afraid my

Re: Fully lazy sequences are coming - feedback wanted!

2009-02-16 Thread wlr
Regarding Programming Clojure: I think that placing the burden of "book vs actual" incompatibility upon Rich is misplaced. If anything, pressure from the Clojure community should be placed on the Pragmatic Programmers to allow Stuart to "do the right thing" regarding when the book is released, vi

Re: multi-method dispatch for structs

2008-11-23 Thread wlr
On Nov 23, 4:03 am, Meikel Brandmeyer <[EMAIL PROTECTED]> wrote: > Hi, > > Am 23.11.2008 um 02:29 schrieb James Reeves: > > >> (defn make-person [name age] > >>   (assoc (struct person name age person) :type person)) > > > Maybe you could roll this into a macro: > > > (defmacro struct* > > [type

Re: Newbie: Creating a MapEntry

2008-11-20 Thread wlr
On Nov 21, 12:03 am, samppi <[EMAIL PROTECTED]> wrote: > I want to mess with sequences of two-sized vectors, Maybe destructuring will do: user> (dorun (map (fn [[k v]] (println "Key " k "Value " v)) [ [:a 3] [:b 2] [:a 1] [:c 0]])) => Key :a Value 3 Key :b Value 2 Key :a Value 1 Key :c Val

Re: i'm having a lot of trouble dealing with events.

2008-11-20 Thread wlr
err, bad paste. :-( Go with Cosmin Stejerean's reply. --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, se

Re: i'm having a lot of trouble dealing with events.

2008-11-20 Thread wlr
On Nov 20, 10:21 am, "Mark Volkmann" <[EMAIL PROTECTED]> wrote: > On Thu, Nov 20, 2008 at 12:00 AM, notallama <[EMAIL PROTECTED]> wrote: > > >                        (keyTyped [#^KeyEvent e] nil) > > I'm not familiar with the syntax above. What does the "#^" part do? > > -- > R. Mark Volkmann > Ob

What's in *your* user.clj?

2008-11-20 Thread wlr
An old tradition for emacs users is to publicize the contents of their .emacs file. (For non-emacs folks, code in .emacs is run as emacs itself starts up allowing emacs to run tailored to the preferences of the user.) As stated in http://clojure.org/getting_started if user.clj is found on the cla