Re: New Fuzzy Matching Library - Fuzzy Matcher

2013-06-27 Thread Jim
Hi Smit, I hope you don't mind a couple of comments :) I had a look at your edit-distance implementation and you've not followed the recommended approach found in various textbooks (dynamic-programming) and that's probably why you resorted to memoization... You see, trying your code without

Re: Adding implicit indexing to Clojure lists and arrays?

2013-06-27 Thread Mikera
I agree that negative indexing (and presumably also modulo indexing for the upper index?) is very useful. Stuff like this comes up all the time in core.matrix However I don't think it makes sense as a standard feature in Clojure's low-level data constructs for several reasons: a) It's a

Interleaving

2013-06-27 Thread Paul Meehan
Hi, Given a sequence (x1, y1, x2, y2, x3, y3,...) and another (z1, z2, z3, ...) I want to interleave such that I get a sequence (x1, y1, z1, x2, y2, z2, x3, y3, z3, ...) What's the most succinct way to achieve this? thanks Paul -- -- You received this message because you are subscribed to

Re: Interleaving

2013-06-27 Thread Paul Meehan
Hi Figured it out - Partition first sequence into two sequences then interleave the three sequences. Paul On Thursday, June 27, 2013 11:37:40 AM UTC+1, Paul Meehan wrote: Hi, Given a sequence (x1, y1, x2, y2, x3, y3,...) and another (z1, z2, z3, ...) I want to interleave such that I

Re: Interleaving

2013-06-27 Thread Meikel Brandmeyer (kotarak)
How about this? (interleave (take-nth 2 xys) (take-nth 2 (rest xys)) zs) Kind regards Meikel -- -- 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

Re: Interleaving

2013-06-27 Thread Paul Meehan
given sequences xy and z (flatten (interleave (partition 1 2 xy) (partition 1 2 (rest xy)) z)) works.. On Thursday, June 27, 2013 11:37:40 AM UTC+1, Paul Meehan wrote: Hi, Given a sequence (x1, y1, x2, y2, x3, y3,...) and another (z1, z2, z3, ...) I want to interleave such that I get

Re: Interleaving

2013-06-27 Thread Alan Forrester
The solution (flatten (interleave (partition 1 2 xy) (partition 1 2 (rest xy)) z)) works provided that none of the elements of xy or z are seqs. For example if xy = [[1 3] [2 4] [3 7] [4 7]] and z= [[5] [6]] this solution produces (1 3 2 4 5 3 7 4 7 6). The other proposal (interleave (take-nth

Re: [ClojureScript] Re: [ANN] modern-cljs - Tutorial 14 - It's better to safe than sorry (part 1)

2013-06-27 Thread Giacomo Cosenza
Thanks Rick, I'm just giving back something to such a great community. We should all thanks all the guys are giving us so much day by day. I can't enumerate all of them, but they are a lot and very knowledgable too. Next month I should be able to add a couple of tutorials. So, stay tuned!

Re: [ANN] modern-cljs - Tutorial 14 - It's better to safe than sorry (part 1)

2013-06-27 Thread Rick Hall
I just wanted to take a second and say thank you for doing these tutorials. I can't express how helpful they are. I can't wait to try out the new one. Thank you very much, Rick -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this

highlight the fun invocation in emacs

2013-06-27 Thread julius
Guys, Is it possible to highlight the fun invocation in emacs, I add a hook to do this but not perfect as I am not familiar with the emacs lisp. It looks like this , (add-hook 'clojure-mode-hook '(lambda () (font-lock-add-keywords nil

Re: lein repl and missing yank

2013-06-27 Thread Manuel Sugawara
On Wed, Jun 26, 2013 at 6:51 PM, Phil Hagelberg p...@hagelb.org wrote: On Wednesday, June 26, 2013 3:26:58 PM UTC-7, Manuel Sugawara wrote: Am working on a linux terminal with the REPL (as in lein repl) and the C-y binding does not work (yank-command, or paste). Definitely a bug that it's

Re: New CSS library - Garden

2013-06-27 Thread Rob Jens
Hey Joel thanks for that! I actually started work on translating the semantic grid to Clojure, it's just that I didn't finish as about half-way I kept the sense we could a bit more with Clojure. What the semantic grid does it just does is to use the float left and display block properties and

Fwd: Deleting Code at Nokia

2013-06-27 Thread Giacomo Cosenza
Hi all, I think this talk could be useful when we need to introduce our beloved clojure. Mimmo http://www.infoq.com/presentations/java-nokia-case-study?utm_source=infoqutm_medium=popular_links_homepage -- -- You received this message because you are subscribed to the Google Groups Clojure

Re: New Fuzzy Matching Library - Fuzzy Matcher

2013-06-27 Thread Jim - FooBar();
Hi again, I see you have implemented your 'search' fn like this: (defn search [word lst {:keys [n rank] :or {n 15 rank 2}}] Get a list of words based on the minimum distance (let [ranked-words (apply hash-map (mapcat (fn [x] [x (edit-distance word x)]) lst))] (take n (keys (sort-by val

Re: New CSS library - Garden

2013-06-27 Thread Rob Jens
Btw, again, thanks for the work done! I would have written some more myself, or brainstorm a bit further but I'm really neck high in work for customers plus big meeting tomorrow so short of time. Anyway, do you plan on incorporating a grid framework/concept in Garden, or keep this a snippet

Re: New CSS library - Garden

2013-06-27 Thread Rob Jens
P.p.s. the pound signs are causing reader errors (e.g. #px) in LightTable so I changed those plus additionally added a little Jetty https://gist.github.com/clojens/5878804 Cheers Op dinsdag 9 april 2013 21:58:50 UTC+2 schreef Joel Holdbrooks het volgende: Nobel Clojurians, I am pleased

[ANN] JSON tagged literals library (worse-is-better EDN)

2013-06-27 Thread Kevin Lynagh
I just open sourced a JavaScript library that may be of interest to Clojurists: https://github.com/lynaghk/json-tagged-literals The library lets you serialize/deserialize custom tags in JSON, similar to EDN. We initially used EDN for some projects, but the deserialization performance of

Re: Adding implicit indexing to Clojure lists and arrays?

2013-06-27 Thread Greg
Thanks Mike (or do you go by Mikera as your email alias suggests?), I think you make very good points, so I withdraw my request. I'm curious though... Just as a learning experience, would it be possible to tack on such syntax implicit indexing and slicing using Clojure's extend-type function?

Re: Interleaving

2013-06-27 Thread Kelker Ryan
Try this.  user (def xy [:x1 :y1 :x2 :y2 :x3 :y3])(as- xy _ (partition 2 _) (interleave _ [:z1 :z2 :z3]) (flatten _))#'user/xy(:x1 :y1 :z1 :x2 :y2 :z2 :x3 :y3 :z3)user  27.06.2013, 19:55, "Paul Meehan" paulchristophermee...@gmail.com:Hi,Given a sequence (x1, y1, x2, y2, x3, y3,...)and

I'm starting to wonder if I'm the only person using clooj ...

2013-06-27 Thread Cedric Greevey
I'm starting to wonder if I'm the only person using clooj ... the clooj list is very quiet lately, and I'm getting the uncomfortable feeling that my notes and bug reports are falling on deaf ears. -- -- You received this message because you are subscribed to the Google Groups Clojure group. To

Re: I'm starting to wonder if I'm the only person using clooj ...

2013-06-27 Thread Lee Spector
I use it, as do many of my students. I also cheerlead for it here and there occasionally because I think that it occupies a unique sweet spot in the Clojure ecosystem, combining substantial, useful functionality (even if one must sometimes augment it with command line calls to lein) with

Re: Interleaving

2013-06-27 Thread Yoshinori Kohyama
One more solution. user= (mapcat (fn [[x y] z] [x y z]) (partition 2 '(:x1 :y1 :x2 :y2 :x3 :y3)) '(:z1 :z2 :z3)) (:x1 :y1 :z1 :x2 :y2 :z2 :x3 :y3 :z3) Y. Kohyama -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email

Re: I'm starting to wonder if I'm the only person using clooj ...

2013-06-27 Thread Arthur D. Edelstein
Hi Cedric and Lee, Thanks again to both of you for your comments, suggestions, and bug reports. Cedric's recent observations on clooj are very helpful and I do hope to fix some of the problems soon. Sorry I've been unable to maintain clooj at a reasonable pace. Arthur On Thu, Jun 27, 2013 at