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 7:
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
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 elegan
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
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" :Hi,Given a sequence (x1, y1, x2, y2, x3, y3,...)and another (z1, z2, z3, ...)I wa
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
functio
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 th
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 please
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 lik
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 < (fi
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=infoq&utm_medium=popular_links_homepage
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" g
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
On Wed, Jun 26, 2013 at 6:51 PM, Phil Hagelberg 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 not working
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
'(("(\\([^(def|fn|try|catch|let|if|else|lo
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 g
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!
My
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 2
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
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 moder
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 th
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
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 breakin
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
23 matches
Mail list logo