On Nov 21, 10:38 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> One thing that strikes me is that the (if (< num sample-size) ...)
> test is unnecessary after sample-size has been
> reached. It might be better to write it as two loops for that reason.
>
I went ahead and made this too "func"
This has now become my first stop for reference information, great
job! Love the changes you've made in the last few days, the searching
is fantastic.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
On 23 Nov., 01:23, Rich Hickey <[EMAIL PROTECTED]> wrote:
> On Nov 22, 4:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
> I still don't understand your expectation here. If the filter does any
> filtering, it won't return everything in the vector, so the new result
> will have fewer item
On Nov 22, 10:08 pm, André Thieme <[EMAIL PROTECTED]> wrote:
> (defstruct person :name :age)
>
> (defn make-person [name age]
> (assoc (struct person name age person) :type person))
Maybe you could roll this into a macro:
(defmacro struct*
[type & params]
`(assoc (struct ~type [EMAIL PROTE
On 19 Nov., 22:16, "Mark Volkmann" <[EMAIL PROTECTED]> wrote:
> I'm reading an excellent article on functional programming
> athttp://www.defmacro.org/ramblings/fp.html. Toward the end there is a
> section on pattern matching. They give the following example which
> uses a fictional, Java-like sy
On Nov 22, 4:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> On Nov 22, 9:48 pm, Rich Hickey <[EMAIL PROTECTED]> wrote:
>
> > map and filter don't modify anything. What does it mean to filter a
> > vector?
>
> Yes yes, I know that. Still in English its sometimes easier to be
> sloppy and
On Nov 22, 10:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> [...] Still in general my
> issue seems to be that data strucutres turn into seqs and this can
> cause subtle issues as for instance the different behaviour of conj
> and a simple rule such as calling vec on the seq seems to b
I had no idea, great!
Thanks.
Rock
On Nov 22, 11:38 pm, Meikel Brandmeyer <[EMAIL PROTECTED]> wrote:
> Hi Rock,
>
> Am 22.11.2008 um 22:23 schrieb Rock:
>
> >http://code.google.com/p/project-euler-lisp/
>
> There is alsohttp://clojure-euler.wikispaces.com.
>
> Sincerely
> Meikel
>
> smime.p7s
Hi Rock,
Am 22.11.2008 um 22:23 schrieb Rock:
http://code.google.com/p/project-euler-lisp/
There is also http://clojure-euler.wikispaces.com.
Sincerely
Meikel
smime.p7s
Description: S/MIME cryptographic signature
On 14 Nov., 20:11, Jeff Rose <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm working on a library where I'd like to be able to dispatch off of
> whether the arguments are one of a number of different possible structs.
> I've created a custom hierarchy and everything makes sense with derive
> etc., but
Hi
On Sat, Nov 22, 2008 at 7:32 AM, samppi <[EMAIL PROTECTED]> wrote:
>
> I'm trying to unit-test a mutli-function's methods without resorting
> to a separate test file. I can do this:
>
> (defn foo
>([x] (+ x 2))
>{:test (fn [] (= (foo 3) 4))})
>
> ...but how do I do something like this
On Nov 22, 9:48 pm, Rich Hickey <[EMAIL PROTECTED]> wrote:
> map and filter don't modify anything. What does it mean to filter a
> vector?
Yes yes, I know that. Still in English its sometimes easier to be
sloppy and pretend that I modify something even though I get another
vector.
> In any case,
On Nov 22, 7:38 pm, "J. McConnell" <[EMAIL PROTECTED]> wrote:
> On Sat, Nov 22, 2008 at 1:22 PM, lpetit <[EMAIL PROTECTED]> wrote:
>
> > I thought about making an eclipse update site available for the current
> > state of the plugin. But for the moment I don't known where I could
> > host it.
>
>
On 16 Nov., 23:31, Simon Brooke <[EMAIL PROTECTED]> wrote:
> Has anyone written a very simple introduction to Clojure for LISP
> hackers? I've spend an evening playing with it pretty intensively, and
> thus far I haven't got a thing to work. I've
> readhttp://en.wikibooks.org/wiki/Clojure_Program
On Nov 22, 4:20 pm, JMan <[EMAIL PROTECTED]> wrote:
> If you look here:
>
> http://clojure.org/java_interop
>
> you will see the following example:
>
> (doto (new java.util.HashMap) (.put "a" 1) (.put "b" 2))
>
> This produces the following error:
>
> java.lang.IllegalArgumentException: No match
If you look here:
http://clojure.org/java_interop
you will see the following example:
(doto (new java.util.HashMap) (.put "a" 1) (.put "b" 2))
This produces the following error:
java.lang.IllegalArgumentException: No matching method found: .put
I believe the correct code is:
(doto (new java
Clojure is one of the programming languages being used at Project
Euler. I've been working out the problems (got more than 30 solved so
far). But I thought it could be helpful to post the solutions, so that
anyone curious can have a look and see how they were (very humbly)
implemented by me, or an
On Nov 21, 2008, at 10:33 PM, Stuart Sierra wrote:
> Thanks, Stephen -- good feedback! I fixed [2] and [3]. Not sure
> about [1], maybe it's a line-ending thing. Anyway, this new patch
> (attached) was written on OSX, so it had better work!
> -S
Thanks Stuart! They all worked.
But... what ar
On Nov 22, 1:07 pm, [EMAIL PROTECTED] wrote:
> In one of my data structures I have a vector as a buffer where things
> are appended to. In addition the things in that buffer sometimes get
> modified using map or filter. Now as map and filter return sequences I
> wonder how to get a vector back e
On Nov 22, 7:31 pm, "Christian Vest Hansen" <[EMAIL PROTECTED]>
wrote:
> With (vec) I think:http://clojure.org/api#toc508
That's not really efficient as it copies the whole seq. It seems that
relative to sequences the other data structures are second class
insofar as when you use the sequence lib
On Sat, Nov 22, 2008 at 1:22 PM, lpetit <[EMAIL PROTECTED]> wrote:
>
> I thought about making an eclipse update site available for the current
> state of the plugin. But for the moment I don't known where I could
> host it.
If it's any help, I have seen at least one other Eclipse plug-in host
the
J'ai pas encore retravaillé le document. Si tu as des suggestions, ne
te gêne pas!
On Nov 22, 1:27 pm, lpetit <[EMAIL PROTECTED]> wrote:
> Well, why not speak french in a newsgroup, to change a little from the
> usual routine :-)
>
> Je veux bien relire, mais comme j'arrive un peu après la batai
> On Nov 21, 10:15 am, Stuart Sierra <[EMAIL PROTECTED]>
> wrote:
> > Don't know if this is supported now not, but here's my old
> > gen_classes.clj:
...
On Nov 22, 12:19 pm, Rich Hickey <[EMAIL PROTECTED]> wrote:
> And how did you organize the implementation side?
Nothing fancy; one file per (g
With (vec) I think: http://clojure.org/api#toc508
On Sat, Nov 22, 2008 at 7:07 PM, <[EMAIL PROTECTED]> wrote:
>
> In one of my data structures I have a vector as a buffer where things
> are appended to. In addition the things in that buffer sometimes get
> modified using map or filter. Now as ma
Well, why not speak french in a newsgroup, to change a little from the
usual routine :-)
Je veux bien relire, mais comme j'arrive un peu après la bataille, si
tu as déjà refait une nouvelle version du document, je préfèrerai,
tant qu'à faire, repartir de cela. Je pense avoir déjà vu plusieurs
end
On Nov 22, 5:23 pm, islon <[EMAIL PROTECTED]> wrote:
> Is the plugin usable right now?
Well, right now, you have a basic Console based REPL. Be aware that it
currently runs on the same JVM as your eclipse, so if you try some
(.exit System 0) you'll kill your session.
You also have syntax highligh
In one of my data structures I have a vector as a buffer where things
are appended to. In addition the things in that buffer sometimes get
modified using map or filter. Now as map and filter return sequences I
wonder how to get a vector back efficiently. I need a vector in order
for conj to append
On Nov 21, 10:15 am, Stuart Sierra <[EMAIL PROTECTED]>
wrote:
> On Nov 21, 8:46 am, Rich Hickey <[EMAIL PROTECTED]> wrote:
>
> > I'd appreciate examples of gen-and-load-class and gen-and-save-class
> > use not well supported by the AOT gen-class.
>
> Don't know if this is supported now not, but
Salutations aux cousins outre-Atlantique,
Je ne veux pas vous décourager mais effectivement la maîtrise de
l'anglais au moins au niveau de la lecture est
plutôt incontournable en informatique. J'ai un associé du coin
d'Aix-en-Provence et un autre d'Algérie qui n'ont pas eu le
choix à leur arrivée
Is the plugin usable right now?
On Nov 22, 8:53 am, lpetit <[EMAIL PROTECTED]> wrote:
> Well, I'm also on board on the clojuredev team since yesterday,
>
> Take a look at the roadmap list (which currently is more a feature
> wishlist than a prioritized list), and please help completing it, and
>
This thread is so long Gmail is not able to keep it in one
conversation and started new one after 100 emails. :)
On 11/22/08, Graham Fawcett <[EMAIL PROTECTED]> wrote:
>
> On Fri, Nov 21, 2008 at 8:14 PM, Telman Yusupov <[EMAIL PROTECTED]> wrote:
> >
> > Toronto, Canada
>
> Another Canadian!
j'ai oublié ... peut être la traduction d'un article comme celui-ci
serait-elle plus démonstrative / pédagogique :
http://www.defmacro.org/ramblings/fp.html
article référencé ici-même il y a quelques temps
On Nov 22, 1:40 pm, peg <[EMAIL PROTECTED]> wrote:
> Bonjour,
> Je peux aussi aider
Bonjour,
Je peux aussi aider à la traduction mais je pense aussi qu'un
didacticiel serait bienvenue plutot qu'un introduction générale.
Démonstration de l'efficacité par l'exemple.
Phil (from Paris)
--~--~-~--~~~---~--~~
You received this message because you are su
Well, I'm also on board on the clojuredev team since yesterday,
Take a look at the roadmap list (which currently is more a feature
wishlist than a prioritized list), and please help completing it, and
give us feedback on what you think your priorities would be,
--
Laurent
On Nov 21, 5:25 pm, ve
Hi all. I am porting my ruby model to clojure, and wondered if any of
you could comment_on / rewrite_to_a_more_clojure-way the following
four functions.
The purpose of it all is to generate a regular expression, which is
ran past a string. This is used as a simple way to mimic the antigen
present
Thanks for all the info. -I'll definitely take a look.
--~--~-~--~~~---~--~~
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
36 matches
Mail list logo