On May 13, 2011, at 14:37 , David Nolen wrote:
> On Fri, May 13, 2011 at 2:04 AM, Heinz N. Gies wrote:
> Hearing Pattern Matching,
> do you mean Erlang like Pattern matching?
>
> Regards,
> Heinz
>
> Erlang, OCaml, SML, Haskell, Scala all have the kind of pattern matching I'm
> talking about.
The require "should" (is preferred to be) in the ns form at the beginning of
the file, i.e.
(ns ...
(:require swank.swank))
Jonathan
On Sat, May 14, 2011 at 12:35 AM, Trastabuga wrote:
> I am trying to compile a project with lein uberjar.
> My main function looks like:
>
> (defn -main [& ar
Hi All-
I am sure I am just missing this in contrib somewhere , but
I am trying to find a subvector such that it returns the rest of the
vector at the first occurrence of a value
(def v ['a 'b 'c 'd 'e 'f 'g])
(my-fun 'c v)
=> ['c 'd 'e 'f 'g]
I need this to be *really* efficient (who doe
Hi,
Am 14.05.2011 um 00:35 schrieb Trastabuga:
> I(defn -main [& args]
> (do
>(require 'swank.swank)
>(swank.swank/start-repl 4006))
> (run-jetty main-routes {:port 8080 :join? false})
> )
You have to delay the resolution.
(defn -main
[& args]
(require 'swank.swank)
(@(resolve '
I think this should be pretty fast
https://gist.github.com/972423
It is at least faster than using split-with:
(time (dotimes [_ 1e6] (last (split-with (partial not= 'x) '[a b c x d
f]
=> "Elapsed time: 521.288318 msecs"
(time (dotimes [_ 1e6] (subvec-at-val 'x '[a b c x d f])))
=> "Elapsed
On May 12, 8:12 pm, James Reeves wrote:
> On 13 May 2011 00:23, Shree Mulay wrote:
>
> > I didn't know there was? What I understood of wrap-reload is that I
> > didn't have to restart "lein ring server" at the command line
> > everytime I made a change to my core.clj file???
>
> > How do I set up
On 14 May 2011 20:49, Shree Mulay wrote:
> One final thought I had is I've noticed if I reload a page, the
> session information is lost. How do we get around this?
You could use defonce to define an atom to back the session storage. e.g.
(require 'ring.middleware.session.memory)
(defonce m
Is there anyplace people post ideas of libraries/frameworks/functions
that would be nice to be implemented in clojure?
Sometimes I want to help the community but I don't know what to do (an
idea), what's already done (yeah, I know one can search github or ask
here but you can't be 100% sure it's no
On Sat, May 14, 2011 at 1:32 PM, Base wrote:
> Hi All-
>
> I am sure I am just missing this in contrib somewhere , but
>
> I am trying to find a subvector such that it returns the rest of the
> vector at the first occurrence of a value
>
> (def v ['a 'b 'c 'd 'e 'f 'g])
>
> (my-fun 'c v)
> =>
bit-clear documentation doesn't explicitly state that index is zero-
based but I would think so. Alpha7 seems to have broken this function.
user> *clojure-version*
{:major 1, :minor 3, :incremental 0, :qualifier "alpha4"}
user> (bit-clear 3 1)
1
user> (bit-clear 3 0)
2
user> (bit-clear 3 2)
3
user
On Sun, May 15, 2011 at 2:47 AM, Islon Scherer wrote:
> Is there anyplace people post ideas of libraries/frameworks/functions
> that would be nice to be implemented in clojure?
> Sometimes I want to help the community but I don't know what to do (an
> idea), what's already done (yeah, I know one c
I have a process which runs fine in my bash terminal, but hangs when I
run it using clojure.contrib.shell-out/sh in the REPL.
Any tips on how to debug this? Would it be a memory issue, or
something else?
in bash:
./wkhtmltopdf --footer-html footer.html --encoding UTF-8 http://[really
long web pag
As an aside, clojure.java.shell is what you should be using, not
clojure.contrib.shell-out.
On May 14, 10:12 pm, Wei Hsu wrote:
> I have a process which runs fine in my bash terminal, but hangs when I
> run it using clojure.contrib.shell-out/sh in the REPL.
>
> Any tips on how to debug this? Woul
13 matches
Mail list logo