Re: palingdrome problem (4 clojure)

2015-10-07 Thread Tristan Strange
eil. Those, a reverse and an = will make bob your uncle. If you haven't seen them writing a recursive function would be a solution too. I'm not sure what the "hint" is about. It seems very misleading to me. Good luck! Cheers, Tristan On 7 October 2015 at 19:06, Moe Aboulkh

[ANN] clj-amp 0.9.0

2015-04-02 Thread Tristan Seligmann
I am pleased to announce the release of clj-amp 0.9.0[1][2], a Clojure implementation of the AMP[3] protocol (the reference implementation of which is found in the Twisted networking framework for Python). clj-amp is implemented on top of Aleph/Manifold/Gloss; Special thanks to Zach Tellman for the

dividing by negative fractions which result in whole numbers still return ratios rather than ints

2010-02-23 Thread tristan
y might question what the hell is going on (just like i did!). cheers .Tristan -- 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 - p

Re: generating a fn with a body based on user inputs, possible?

2010-01-11 Thread tristan
Thanks for the notes Meikel, i'm a clojure newbie so this sort of advice in invaluable to me! On 8 Jan., 16:00, Meikel Brandmeyer wrote: > Hi, > > On Jan 8, 3:10 pm, tristan wrote: > > > I've been working on a problem where I want the user to be able to > > i

Re: generating a fn with a body based on user inputs, possible?

2010-01-08 Thread tristan
Thanks Chouser! I had not thought of moving the (list 'fn ...etc) bit into the eval statement, it works perfectly! here is the final result! http://github.com/tristan/modelmaker/blob/d7dbdfa9b998cfc6b846ea5c235b4496ed8caa63/infix_parser.clj .Tristan On 8 Jan., 16:15, Chouser wrote: >

generating a fn with a body based on user inputs, possible?

2010-01-08 Thread tristan
string on each call to the function, or come up with some way to compile the code and load it back in? Here is what I have attempted so far: http://github.com/tristan/modelmaker/blob/41844b9376b57c05b457c02ac70dfc39c0935a03/infix_parser.clj My (parse) function expects a string containing an inf

Re: macro headaches

2009-12-16 Thread tristan
this purpose: > (mystery-fn object (memfn method-to-call item) list-of-items) > > But note that those days, memfn is somewhat deprecated in favor of raw (fn > ...) or #(...) constructs. > > HTH, > > -- > Laurent > > 2009/12/15 tristan > > > >

macro headaches

2009-12-15 Thread tristan
ecur (rest in obj) but i would still like to know if there is a way i could get the macro i wanted going. please help! my googling and trauling through Stuart Halloway's book have come up naught. thanks in advance! -Tristan -- You received this message because you are subscribed to t

Speed issues vs. Python

2009-03-11 Thread tristan
) my python version http://github.com/tristan/project-euler-code/blob/4a17bc271b4b2743ee1d5b5692f86f963c6bcc7b/0087.py runs in ~4 seconds (timed using cygwin "time python 0087.py" whereas my clojure version http://github.com/tristan/project-euler-code/blob/4a17bc271b4b2743ee1d5b5692f8

Re: distinct broken?

2008-12-27 Thread tristan
Thanks for the explanation Christophe. I really need to try use (for) more often. I seem to forget about it all the time. On Dec 27, 10:42 pm, Christophe Grand wrote: > tristan a écrit : > > > Hi All, > > > I've been trying to learn clojure lately by solving the proje

distinct broken?

2008-12-26 Thread tristan
his a bug or am i doing something wrong? thanks -Tristan --~--~-~--~~~---~--~~ 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 t