into expects that because it is implemented with conj.
> (conj {} [:foo :bar])
{:foo :bar}
On Wednesday, March 26, 2014 4:41:16 PM UTC-4, Michael Gardner wrote:
>
> For reasons unclear to me, (into {} ...) expects a sequence of 2-element
> *vectors*, not just 2-element collections. partition re
You can use a browser connected repl too:
https://github.com/emezeske/lein-cljsbuild/blob/master/doc/REPL.md
I've used repl-listen with success.
Robert
On Mon, Sep 10, 2012 at 06:28:14PM +0200, Laurent PETIT wrote:
> Hello,
>
> A "ClojureScript workflow" newbie question.
>
> People seem to be
On Sun, Aug 12, 2012 at 11:22:55AM -0700, Takahiro Hozumi wrote:
> > (filter (partial not nil?) coll)
> You mean (filter (comp not nil?) coll).
> I'm not sure which is more readable, but thanks for Meikel and Alex, I now
> prefer (remove nil? coll).
remove is better in this case, but for posterit
On Wed, Aug 08, 2012 at 08:00:26PM -0600, Jim Weirich wrote:
>
> On Aug 8, 2012, at 1:50 PM, Timothy Baldridge wrote:
>
> >
> > >>I'm looking for medium-scale examples of using function-generating
> > >>functions.
> >
> >
> > I'm not sure if this is exactly what you're looking for, but this
Form validation:
https://github.com/joodie/clj-decline
https://github.com/joodie/pretzel
Form generation:
https://github.com/joodie/flutter
Robert
On Mon, Jul 23, 2012 at 03:30:21PM -0500, gaz jones wrote:
> https://github.com/mikejones/mississippi
>
> again, not specific to web forms. works
chaĆ
> >
> >
> > On 3 July 2012 04:40, David Nolen wrote:
> >> Please open a ticket with these details:
> >> http://dev.clojure.org/jira/browse/CLJS
> >>
> >> Thanks!
> >>
> >> David
> >>
> >> On Mon, Jul 2,
I'm getting an error when trying to call a multimethod in a certain
scenario. I'm unfortunately not able to reproduce this when running it
as a test case with v8. But, I was able to trim it down to the following
test case which fails for me in a browser (with a connected repl).
(defmulti foo (fn
On Wed, May 16, 2012 at 02:15:59AM +0200, Raju Bitter wrote:
> What is the best way to write an FilterInputStream or InputStream do
> disk? I'm downloading a file using the clj-http library:
>
> (:body (client/get
> "http://www.openlaszlo.org/pipermail/laszlo-dev/2012-May.txt.gz"; {:as
> :stream})
If the jvm does have enough memory, you may want to try building up the
map using a transient.
And not sure if this is faster, (maybe it's slower), but you can spell the
function you pass to reduce more succinctly:
(fn [G [v1 v2]] (update-in G [v1] (fnil conj []) v2))
Robert
On Thu, Apr 12, 201
On Tue, Jan 03, 2012 at 07:22:22PM -0800, Trevor wrote:
> hmmm macro question:
>
> ; here's a macro that assembles many puts. It serves no purpose to me
> (and doesn't even make sense in its current form). It's just something
> I hit playing around and learning macros.
>
> (defmacro doto-putt
On Sat, Dec 17, 2011 at 06:06:50AM -0800, Razvan Rotaru wrote:
> Hi,
>
> This may sound a bit weird, but can I "unquote-splice" something when
> calling a macro. Here's an attempt to do this with hiccup:
>
> (defn get-header
>[[:link {:type "text/css" ...}]
> [:script {:type "text/javascr
On Tue, Nov 15, 2011 at 04:52:04PM +, labwor...@gmail.com wrote:
> I understand that lazy sequences are very useful but sometimes, I want to
> compute everything, go away, and have it there when I come back.
> How do I do that with a map?
> (def x (map fn coll))
doall
http://clojuredocs.org/c
12 matches
Mail list logo