On Fri, Nov 26, 2010 at 11:50 PM, Alex Osborne wrote:
> The extra parens mean a prefix, like in the second example.
>
> (:import (foo bar baz)) means import both foo.bar and foo.baz
>
> While (:import (foo)) is meaningless, it doesn't do anything.
Perhaps a compiler warning is in order in cases l
Alex Osborne writes:
> benjii writes:
>
>> (ns org.codingkata.unit.MyKata
>> (:import (org.codingkata.unit.api.BaseKataSolution)
>> (org.codingkata.unit.api.BaseKataSolution$Day))
>> (:gen-class
>>:extends org.codingkata.unit.api.BaseKataSolution))
>>
>> This compile, but the
benjii writes:
> Hi, i'm pretty new to clojure.
> To help me to progress i'm trying to solve the kata available on
> codingkata.org
> I'm doing the ovie-tickets kata.
> As you can se on the site, to complete this kata we need to acces to a
> enum wich is a nested class.
>
> My problem is that
Thanks for the detailed reply, Alex!
I realized my error with super-pom, but like you I was unable to
figure out why Clojure 1.3.0-alpha wasn't loading.
In any case, I'll take up your suggestion of adding an exclusion for
those libraries. It's probably something I should have thought of
doing mys
I've investigated this a little further, and it looks like I was
misinterpreting the dependency error messages.
0.8.0-SNAPSHOT doesn't work because it hasn't been uploaded to Clojars.
0.7.1 doesn't work because it references clojure-contrib
1.1.0-master-SNAPSHOT, and clojure 1.3.0-alpha3, the lat
James Reeves writes:
> I've just tried installing autodoc 1.7.1 and 0.8.0-SNAPSHOT via
> Leiningen and Clojars, and it seems to be missing some dependencies
> (specifically org.apache.maven:super-pom:jar:2.0).
*sigh* This is a case of Maven being totally misleading and also a case
of death by s
James,
I don't know why this would be true, but something may have broken in
the underlying dependency chains. Autodoc hasn't been updated in
clojars for a very long time and does not directly depend on super-
pom.jar.
Are you using autodoc standalone or as a lein plugin?
Tom
On Nov 26, 1:09 pm
tpeng writes:
>> (defn foldr [f coll]
>> (reduce #(f %2 %1) (reverse coll)))
> but this foldr can't handle the infinite list, am i right?
Correct. In a lazily evaluated language like Haskell you can have a
combining function which doesn't always evaluate its arguments and thus
only partially
I've just tried installing autodoc 1.7.1 and 0.8.0-SNAPSHOT via
Leiningen and Clojars, and it seems to be missing some dependencies
(specifically org.apache.maven:super-pom:jar:2.0).
Has anyone else had this problem recently?
- James
--
You received this message because you are subscribed to th
I hope everybody is having a good weekend (esp. after Thanksgiving in
the US).
Has anybody been successful using Emacs to create an environment where
you can set a break statement and, when it is hit, you have REPL
access to the program's current environment at the point of the break?
I've tried t
On 26 November 2010 16:48, Laurent PETIT wrote:
> 2010/11/26 Steven E. Harris
>> Daniel Werner writes:
>> > (some identity maps), on the other hand, checks whether there is any
>> > non-empty map *in the coll of maps*.
>>
>> By "non-empty" here, do you really mean non-nil? I don't see how the
>>
On Nov 21, 3:15 pm, nickik wrote:
-snip-
> - What are the best tools to benchmark on the jvm (and optimize your
> tests)
JavaStats
http://shootout.alioth.debian.org/help.php#languagex
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to thi
but this foldr can't handle the infinite list, am i right?
On Nov 8, 2:18 am, "nicolas.o...@gmail.com"
wrote:
> On Sun, Nov 7, 2010 at 3:28 PM, iko...@gmail.com wrote:
> > 2010/11/7 David Sletten
>
> >> Or for those of you who prefer that other people won't be able to read
> >> your code:
> >>
Hi, i'm pretty new to clojure.
To help me to progress i'm trying to solve the kata available on
codingkata.org
I'm doing the ovie-tickets kata.
As you can se on the site, to complete this kata we need to acces to a
enum wich is a nested class.
My problem is that i'can't acces to this class. I miss
Lau,
I agree that it is a lot of work and no one person can do it all well.
I think that the main thing that needs to happen at this point is that
you, as the brains behind ClojureQL, should spend a little time
thinking about the best way for people to contribute back end
implementations. Maybe th
On Nov 26, 2:14 am, Ken Wesson wrote:
> On Thu, Nov 25, 2010 at 11:10 PM, Brian Gruber wrote:
> > At which point I get the following exception:
> > java.lang.IllegalArgumentException: Can't call public method of non-
> > public class: public javax.sound.midi.MidiChannel[]
> > com.sun.media.sound.
2010/11/26 Steven E. Harris
> Daniel Werner writes:
>
> > (some identity maps), on the other hand, checks whether there is any
> > non-empty map *in the coll of maps*.
>
> By "non-empty" here, do you really mean non-nil? I don't see how the
> identity function would tell you whether any of the m
Daniel Werner writes:
> (some identity maps), on the other hand, checks whether there is any
> non-empty map *in the coll of maps*.
By "non-empty" here, do you really mean non-nil? I don't see how the
identity function would tell you whether any of the maps are empty or
not.
--
Steven E. Harri
Dear all,
Is it already in 1.3 alpha3 (or planned before 1.3) to support
primitives as arguments and return values of members of protocols?
Best regards,
Nicolas.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to
On Nov 26, 1:42 pm, Stefan Rohlfing wrote:
> Question 1:
> (when (some identity maps)
>
> This expression from the original implementation checks if the
> provided coll is empty.
> However, why not just use (when (empty? maps) or (when (seq maps)
> instead?
Note also that (seq maps) and (empty? m
thanks konrad for your reply.
Sunil.
On Fri, Nov 26, 2010 at 7:01 PM, Konrad Hinsen
wrote:
> On 26.11.2010, at 13:46, Chris Perkins wrote:
>
> > I'm pretty sure that macro-utils predates the addition of the &env
> > paramter. Since macro-utils takes such an aggressive approach to
> > macroexpansi
Hi Chris,
Thanks a lot for your clear explanations! Now all the pieces suddenly
make sense to me.
Stefan
On Nov 26, 9:30 pm, Chris Perkins wrote:
> On Nov 26, 7:42 am, Stefan Rohlfing wrote:
>
>
>
>
>
>
>
>
>
> > Dear Clojure Group,
>
> > Today I took a closer look at the 'merge-with' function
Thanks Chris for your explanation.
Sunil.
On Fri, Nov 26, 2010 at 6:16 PM, Chris Perkins wrote:
> On Nov 26, 12:25 am, Sunil S Nandihalli
> wrote:
> > I just realized that we don't need to use the with-symbol-macros when
> using
> > symbol-macrolet .. but the problem persists all the same.. I h
On 26.11.2010, at 13:46, Chris Perkins wrote:
> I'm pretty sure that macro-utils predates the addition of the &env
> paramter. Since macro-utils takes such an aggressive approach to
> macroexpansion - essentially reimplementing it entirely - it is not
> too surprising that it would become out of s
On Nov 26, 7:42 am, Stefan Rohlfing wrote:
> Dear Clojure Group,
>
> Today I took a closer look at the 'merge-with' function of Clojure
> Core and changed some parts to better understand its implementation.
>
> Now I still have two questions regarding the following code:
>
> (defn my-merge-with [f
Thought some Clojure folk might enjoy this:
http://blog.stephenwolfram.com/2010/11/100-years-since-principia-mathematica/
--
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 fr
On Nov 26, 12:25 am, Sunil S Nandihalli
wrote:
> I just realized that we don't need to use the with-symbol-macros when using
> symbol-macrolet .. but the problem persists all the same.. I have modified
> the gist to reflect this change..
> Sunil.
>
> On Fri, Nov 26, 2010 at 10:35 AM, Sunil S Nand
Dear Clojure Group,
Today I took a closer look at the 'merge-with' function of Clojure
Core and changed some parts to better understand its implementation.
Now I still have two questions regarding the following code:
(defn my-merge-with [f & maps]
(when (some identity
maps)
On Nov 19, 3:44 pm, Seth wrote:
> unfortunately doesnt work. The library loads succesfully but i still
> get the error when calling add. Note that compiling on the top is a
> workaround to get it working on the repl.
>
> i added the loadlibrary to an init function which is good and i
> decided to
29 matches
Mail list logo