Laurent, I don't quite understand your point. Could you please explain it a little more?
Thanks On Jul 8, 12:16 pm, Laurent PETIT <laurent.pe...@gmail.com> wrote: > 2009/7/8 Sean Devlin <francoisdev...@gmail.com>: > > > > > This seems like a good use for a macro. A couple of thoughts: > > > 1. Use arrays instead of lists > > In clojure, it is "best practice" to use arrays for data. So, your > > macro call should look like this. > > > (match [1 2 3] > > [1 x] (+ x x) > > [1 x y] (+ x y)) > > Hi, > > s/array/vector/g > > Regards, > > -- > Laurent --~--~---------~--~----~------------~-------~--~----~ 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 - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---