Hi, I was experimenting with clojure-contrib's sql features and found
that there wasn't any update-values function. I've written my own and
I'm sharing it here:
(defn update-values [table where column-names & values]
"Update columns of a table with values. columns-names is a vector of
column
ams*] list :)
> (ahem)
>
>
>
> On Fri, Jan 2, 2009 at 8:21 AM, budu wrote:
>
> > Hi, I was experimenting with clojure-contrib's sql features and found
> > that there wasn't any update-values function. I've written my own and
> > I'm sharing it her
n C. Gilardi wrote:
>
> > I'd like to include something like this in clojure.contrib.sql. That
> > will go smoothest if I can base it directly on what you've written
> > and that's only possible if you send in a contributor agreement.
> > Would you please se
Congratulation, this is quite amazing to see Clojure mature so fast
and already working in production system. Sorry but I need to get back
at finding that damn bug in a 10 years old VB legacy application :-(
On Jan 13, 10:38 am, Luc Prefontaine
wrote:
> Hi everyone,
>
> as of yesterday pm, Cloju
Hi everybody, since I started using Clojure I've always felt that a
small function for turning a sequence of chars into a string was
missing. I'm currently using this one even though the name isn't quite
right, but I didn't found better:
(defn unseq [chars]
(new String (into-array (. Characte
Hi, I've just read the "On the importance of recognizing and using
maps" post and it made wonder about the best way for identifying maps.
Obviously, when the situation permit it, we better use some kind of
label to identify them. But sometimes, it's preferable to test for
multiple keys and I'm not
I just tried it, this is fantastic! We'll finally be able to debug
macros while keeping our sanity. Many thanks for this and I hope it
will be added directly into Clojure.
On Mar 12, 3:05 am, Tom Faulhaber wrote:
> I have now "released" the first version of my pretty printer as part
> of my cl-f
Hi, I've been having a great time using Clojure in the last few month.
But this week I've come accross something that is blocking me. I'm
trying to write a very simple pattern matching macro to use in other
macros for matching forms. I've based my macro on one posted in this
group by James Reeves
~(expand-parser-body xs))
(defmacro parser [& body]
(let [s (gensym 's)]
`(fn [~s] ~(expand-parser-body body s
It's for a small parser combinator library I'm writing.
On Aug 24, 1:26 pm, Chouser <[EMAIL PROTECTED]> wrote:
> On Sun, Aug 24,
e I already said I don't know if I
really need it.
Thanks
On Aug 24, 2:49 pm, Chouser <[EMAIL PROTECTED]> wrote:
> On Sun, Aug 24, 2008 at 1:33 PM, budu <[EMAIL PROTECTED]> wrote:
>
> > Here is the match-forms function:
>
> Thanks. Now that I can see some co
(result (join x xs))
user=> ((string "hello") "hello world")
(["hello" " world"])
It's a straitforward implementation of the parser combinators
described in the "Monadic Parser Combinators" papers by Hutton and
Meijer.
Thanks again!!
a)) "test")
([([\t "est"]) "est"])
And the 'string' combinator can be simply written like that:
(defn string [s]
(if (= 0 (count s)) (result "")
(let [[x xs] (split s)]
(parser (pchar x)
(string xs)
Thanks a lot! It's funny that you wrote this post now because I was
about to try to figure it out myself this week-end.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send ema
Wow, jamais je n'aurais pensé lire des commentaires à propos des
problèmes de prononciation de madame Marois ce matin. Comme on dit au
Québec: "Osti qu'j'ai hâte qu'les élections finisse!"
Sorry about being offtopic ;-)
On Nov 22, 11:35 am, Luc Prefontaine <[EMAIL PROTECTED]>
wrote:
> Salutation
Hi, great work! It really put to shame my own pathetic attempt to try
to implement monad last summer. ;-)
Thanks, I'll certainly learn a lot from this.
On Nov 25, 4:40 am, Konrad Hinsen <[EMAIL PROTECTED]> wrote:
> I just uploaded an improved version of my monad implementation:
>
> http:/
15 matches
Mail list logo