Tried those with a single entry map and they didn't workobviously
(face-palm). Forgot to loop over the map first! Thanks!!!
On Friday, September 25, 2015 at 1:32:51 PM UTC-7, Fenton Travers wrote:
>
> Are there functions that would operate on an map_entry, to give the key
> and the value?
Hello,
I'm trying to process messages from 2 core.async channels at the same time
using alts!! but I'm running into problems when one of the channels closes
early. Specifically I have this function:
(defn >print [a b]
(loop [limit 20] ;;limit to prevent infinite loop demonstrated below
(l
Lars, thanks for telling me about squiggly-clojure. It seems great.
Do you know if there's a way to get it to work with cljc and/or cljs files?
Currently, it only seems to work with clj files.
On Thursday, 24 September 2015 13:36:07 UTC-7, JvJ wrote:
>
> Hi,
>
> Maybe this topic has already be
"key" and "val" might be the functions you want.
- James
On 25 September 2015 at 21:32, Fenton Travers
wrote:
> Are there functions that would operate on an map_entry, to give the key
> and the value? I image looping over a map and with each entry being able
> to get the key of that map_entry
Try key and val:
user=> (doc key)
-
clojure.core/key
([e])
Returns the key of the map entry.
nil
user=> (doc val)
-
clojure.core/val
([e])
Returns the value in the map entry.
nil
user=>
On Friday, September 25, 2015 at 3:32:51 PM UTC-5, Fenton
Try destructuring:
clanhr.absences-api.controllers.routes=> (map (fn [[k v]] {k v}) {:a 1 :b
2})
=> ({:a 1} {:b 2})
On Fri, Sep 25, 2015 at 9:32 PM, Fenton Travers
wrote:
> Are there functions that would operate on an map_entry, to give the key
> and the value? I image looping over a map and
Are there functions that would operate on an map_entry, to give the key and
the value? I image looping over a map and with each entry being able to
get the key of that map_entry and the value of that map_entry. I know
'keys' and 'vals' but that operates on a collection versus a map_entry
tupl
Hello,
Have you given typed-clojure-mode a shot? If there are any issues, post on
the github page and I'll address them. There are similar modes for vim and
light table.
https://github.com/typedclojure/typed-clojure-mode
John
On Thursday, September 24, 2015 at 1:36:07 PM UTC-7, JvJ wrote:
>
Could it be that the client does not support "streaming" the result and instead
waits until the server finishes the request? I don't think the browser or
standard AJAX requests let you stream the result.
--
You received this message because you are subscribed to the Google
Groups "Clojure" gro
I thought ClojureScript was shadowing Clojure closely to maximize
portability. Since seqable? is present only in ClojureScript, seqable? is
not portable. Does anyone know why it's only in ClojureScript?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group
I'm not sure. I just run some thing like this inside build.sh:
#!/bin/bash
git pull
lein clean
lein uberjar
cp target/xyz.jar ~/builds/
--
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
Not
I'm not sure. I just run some thing like this inside build.sh:
git pull
lein clean
lein uberjar
cp target/xyz.jar ~/builds/
--
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
Carlo,
you were right. It works perfectly! Thanks
On Thursday, September 24, 2015 at 9:25:24 PM UTC-4, Carlo wrote:
>
> I don't know anything about your PDF/email problem, but I was under the
> impression that you could use the local filesystem in Heroku, but that you
> can't rely on it for p
Cider has a cider-run command as an easy way to run specific functions. You
can cook up some simple elisp to load the buffer and then call that
function.
On 25 Sep 2015 10:22 am, "Lars Andersen" wrote:
> Something like this doesn't exist in CIDER, so you have to write some
> elisp yourself, if yo
Something like this doesn't exist in CIDER, so you have to write some elisp
yourself, if you want it.
While not exactly what you've envisioned, I think the best solution is
this: https://github.com/clojure-emacs/squiggly-clojure
On Thursday, September 24, 2015 at 10:36:07 PM UTC+2, JvJ wrote:
15 matches
Mail list logo