Hi Everybody,
I am trying to write a code using the thrift in clojure. The files
generated by thrift are present and I am able to run lein jar and it
successfully creates a jar. but when I am inside emacs and I try to do C-c
C-k it fails to load(import) the class file corresponding to one of the
c
> I would love to have a version of doseq that works like map (similar to
> "each" in other dynamic languages). In other words, instead of (doseq [log
> logs] (println log)), I would say something like (each println logs).
>
> Is there a built-in Clojure method that works like this?
Since Clojure
Technically speaking, the -> & ->> macros are _not_ the thrush
combinators. Fogus wrote about them sometime back
http://blog.fogus.me/2010/09/28/thrush-in-clojure-redux/ and I think
you should mention that in your document too.
Nevertheless, very useful document!
Regards,
BG
On Fri, Jun 8, 2012
Hi,
the doseq has the additional benefit of its ugliness which makes side-effects
stand out. ;)
Kind regards
Meikel
-Ursprüngliche Nachricht-
Von: Sean Corfield
An: clojure@googlegroups.com
Gesendet: Sa, 09 Jun 2012, 04:50:53 MESZ
Betreff: Re: Doseq, map-style
On Thu, Jun 7, 2012 at 8
On Sat, Jun 9, 2012 at 6:13 PM, Meikel Brandmeyer wrote:
> the doseq has the additional benefit of its ugliness which makes
> side-effects stand out. ;)
+1
Regards,
BG
--
Baishampayan Ghose
b.ghose at gmail.com
--
You received this message because you are subscribed to the Google
Groups "Clo
Yes. Thank you Andy.
[ ]s
Leandro.
On Fri, Jun 8, 2012 at 10:18 PM, Andy Fingerhut wrote:
> Does this do what you want?
>
> (defn require-from-string [s]
> (require (symbol s)))
>
> Andy
>
> On Jun 8, 2012, at 5:37 PM, Leandro Oliveira wrote:
>
> > Hi,
> >
> > What is the best way to implement
Why not make it yourself? Something like this perhaps?
(defmacro doeach [f coll]
`(doseq [x# ~coll] (~f x#)))
Itis good if you name it "doeach" instead of each to imply side-effects
(just like doseq)...
Hope that helps...
Jim
On 08/06/12 04:32, David Jacobs wrote:
I would love to have a ve
I just saw this has been already answered! I apologise for the noise!
Jim
On 09/06/12 16:45, Jim - FooBar(); wrote:
Why not make it yourself? Something like this perhaps?
(defmacro doeach [f coll]
`(doseq [x# ~coll] (~f x#)))
Itis good if you name it "doeach" instead of each to imply
side-ef
Can you elaborate some suggestions?
Juan Manuel
On Friday, June 8, 2012 3:44:16 PM UTC+2, Stuart Sierra wrote:
>
> The ants demo is definitely dated. It's not terrible, but the code could
> use some polishing/simplifying using newer additions to the language.
> -S
>
>
--
You received this mess
Noted and updated! Thx.
On Friday, June 8, 2012 11:02:50 AM UTC-7, fenton wrote:
>
> I created a tutorial explaining what the thrush -> and ->> operator is.
>
>
> https://github.com/ftravers/PublicDocumentation/blob/master/clojure-thrush.md
>
> My tutorials are aimed at people who appreciate VERY
On Fri, Jun 8, 2012 at 5:55 PM, OGINO Masanori wrote:
> There are many negative votes for the proposal and the main doubt is
> "do you need to make them in closure.string?"
Hi Ogino,
Please don't misinterpret my comments as saying you're wasting time.
By all means, keep working on this. `tabify`
This is all very nice but it seems to me to be a case of less is more (or
more is less). I mean, if I am used to read inside out easily, this
operator just makes my life harder. I don't plan to use it but
unfortunately to understand other people's code, I have to switch mindset.
On Sat, Jun 9, 20
Sorry for rehashing the contrib issue once again...I cannot seem to figure
out what happened to this library...
Thanks
--
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
while I couldn't get it to work from with-in slime .. I was able to get
around the problem by doing a
lein repl
where I could run the (s-expressions) for debugging purposes..
I just thought of updating the mailing list should somebody else come
across the same problem..
Sunil.
On Sat, Jun 9, 2012
I'd just use doseq.
--
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 moderated - please be patient with your
first post.
To unsubscribe from this group,
Thanks, guys.
I know there are easy ways to implement what I want. However, I'm more curious
as to why the language itself doesn't support this style of mapping
side-effects.
In other words, why does doseq not follow map's lead here. Is there a
philosophical difference underlying the syntax di
Thanks! That section of Incanter must be new, I haven't seen it till now. Will
check it out and report back.
On Friday, June 8, 2012 at 7:15 AM, Lars Nilsson wrote:
> On Fri, Jun 8, 2012 at 12:30 AM, David Jacobs (mailto:da...@wit.io)> wrote:
> > Has anyone written a function minimizer in Cloj
Reviving this thread to see if anyone has any info at this point. Looking
at the implementation of extend-type in JVM Clojure and ClojureScript, it's
obvious that in ClojureScript it's not a simple "wrapper" macro for a
specific use of extend, like it is in JVM Clojure.
As this particular mecha
Patch welcome! :)
On Sat, Jun 9, 2012 at 9:02 PM, semperos wrote:
> Reviving this thread to see if anyone has any info at this point. Looking
> at the implementation of extend-type in JVM Clojure and ClojureScript, it's
> obvious that in ClojureScript it's not a simple "wrapper" macro for a
> spe
You could also (dorun (map f coll))
It is actually interesting you brought this up as I was recently
contrasting the OO principle "tell don't ask" with the functional way of
doing things. In OO a void method taking a visitor is preferred over
return values. One could perhaps say that (doru
>
> Is there a philosophical difference underlying the syntax difference
> (doseq [elem coll] (f coll)) and (each f coll)?
>
`doseq' is the side-effecty version of `'for', not map. It lets you do
things like
user> (doseq [x (range 100)
:while (< x 20)
:when (even? x)]
Hey All,
I was wondering if anybody has a work-around for doing a list of tags like
this:
(crate/html (list [:div.class1] [:div.class2]))
Because it causes the browser repl to hang up & gives
Uncaught [:div.class1] is not a valid tag name.
If I have a single div as the root, it works just fine.
This one threw me, hard. I do all my development with a long running
process (as, I'm sure, most people do). Is there some way we can tweak
the implementation to avoid this problem?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group
On Sat, Jun 9, 2012 at 9:04 PM, Orion Hickman
wrote:
> This one threw me, hard. I do all my development with a long running
> process (as, I'm sure, most people do). Is there some way we can tweak
> the implementation to avoid this problem?
Unfortunately defonce semantics on defmulti is intention
probably something like:
(map crate/html (list [:div.class1] [:div.class2]))
untested.
If you want to modify the dom in the process - then you could use doseq.
D
On Sunday, 10 June 2012 13:54:28 UTC+10, Sean Neilan wrote:
>
> Hey All,
>
> I was wondering if anybody has a work-around for doi
On Sat, Jun 9, 2012 at 11:21 AM, Base wrote:
> Sorry for rehashing the contrib issue once again...I cannot seem to figure
> out what happened to this library...
The short answer is nothing. It stopped being maintained, along with
several other modules in the old contrib package.
The longer answe
26 matches
Mail list logo