On Aug 23, 2009, at 8:21 PM, Stan Dyck wrote:
I'm still new to this so bear with me.
Welcome.
I'm trying to apply a function to a seq-able thing to produce a
hashmap. So for instance say the function is (inc 3).
I'd like to write a function that does
[1 2 3] --> {1 4, 2 5, 3 6}
Can some
I'm still new to this so bear with me.
I'm trying to apply a function to a seq-able thing to produce a hashmap. So for
instance say the function is (inc 3).
I'd like to write a function that does
[1 2 3] --> {1 4, 2 5, 3 6}
Can someone help me?
StanD.
--~--~-~--~~~--
Is there some simple way to spin-up the REPL and start stepping
through top-level expressions in a source file?
(I've probably missed something simple.)
Background-- Eclipse 3.4.2 is running on my MacBook under OS 10.4.11.
Works fine for a little Java programming. Wanted to get back to
programmin
Stuart,
This is a significant improvement over the original str-utils library,
and goes a long way towards making "string processing kick ass in
Clojure". I like the fact that you made some design decisions for the
library, and did everything you could to stick with them. That makes
the library
Thank you so much guys- I knew something was wrong... didn't realize
though that I was using the wrong loading command.
-Conrad
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, s
Yes, I have it working using macros, but that ends up bloating my code a bit.
On Sun, Aug 23, 2009 at 5:30 PM, Timothy
Pratley wrote:
>
> There is a ticket for metadata on functions:
> https://www.assembla.com/spaces/clojure/tickets/94-GC--Issue-90---%09-Support-metadata-on-fns
> So it seems this
There is a ticket for metadata on functions:
https://www.assembla.com/spaces/clojure/tickets/94-GC--Issue-90---%09-Support-metadata-on-fns
So it seems this is a planned feature, but not implemented yet - due
to "Requires dealing with the with-meta copying issues for closures".
But as you mentione
Hi,
Instead of "low level" 'load call, you should use either 'require or 'use in
the REPL.
That would allow you to either
(require 'bar) => will not try to get a fresh content of bar from the
filesystem if ns bar already exists
(require 'bar :reload) => will force ns bar to be reloaded from the
f
"load" is a low-level file loading function; it does not reload
dependent namespaces.
Use the higher-level "require" and "use" functions with the :reload-
all option, which will reload dependent namespaces.
-SS
On Aug 23, 2:48 pm, Conrad wrote:
> Hi- I have a bug in my code related most like
On Wed, Aug 19, 2009 at 01:08, tmountain wrote:
[snip]
>
> Also, this is
> a side question, but does anybody know if there's a faster (or better)
> way to compare two lazy sequences than the following?
>
> (defn seq-identical? [seq1 seq2]
> (zero? (compare (vec seq1) (vec seq2
>
A note on th
On Sat, 2009-08-22 at 23:58 -0700, bradford cross wrote:
>
>
> On Sat, Aug 22, 2009 at 11:24 PM, Michel Salim
> wrote:
>
> On Sat, 2009-08-22 at 23:00 -0700, bradford cross wrote:
>
> >
> > Destructuring is useful all over the place, not just for
>
Please get back to me; you should be able to set up your own builds,
if not I can do it for you, or walk you through it. It's under
"Create Plan".
On Fri, Aug 21, 2009 at 3:47 PM, Mark Derricutt wrote:
> Hrm - I couldn't clone any of the clojure builds as they wer'nt listed, and
> I see theres n
Hi- I have a bug in my code related most likely to my misunderstanding
of some arcane corner of Clojure namespaces... can someone tell me
what I'm missing?
First, create the following 2 files:
--- foo.clj ---
(ns foo)
(def x (ref true))
--- end foo.clj ---
--- bar.clj ---
(ns bar
(:use foo)
I keep running in circles with meta data on functions.
This is my current understanding:
Meta data for the function's name symbol is merged with any meta data
provided as a map before the parameter decls.
This combined meta-data is then applied to the Var that holds the function.
However, it d
Thanks DTH.
Fortunately the HTML I am parsing is clean and it's consistently the
same pages being scraped.
Saxon seems to be most in line with what I'm looking for (handles
XPath 2.0), I'll have to try it out. Otherwise I might have to use a
java library.
-Dan
On Aug 23, 3:53 am, DTH wrote:
Chas,
I am sorry for my late response.
Thank you very much for your explanation and the code.
It was extremely helpful!
I had problems related to my classpath (I need to sleep more...),
so I ended up with a modified version that can load any file,
whether it is in the classpath or not.
I paste
There are a number of options, depending on your needs:
- the standard JRE libraries for xml parsing / xpath (javax.xml.*).
These have the benefit of having seen wide usage (outside of clojure),
and would allow you to migrate existing xpaths over unchanged.
- clojure.xml - a more clojuresque way
2009/8/23 dmix :
[...]
> I found an http client on github but I haven't found any HTML parser,
> does anyone know if one exists?
I don't know, but one of the benefits of Clojure is that you can
directly access Java libraries, so one of these links might be just
what you're looking for:
http://ww
18 matches
Mail list logo