Once you write enough lisp, eliminating parens becomes more trouble than
it's worth.
Also the guy who did this has the same name as my dad? I'm ashamed.
On Monday, 25 March 2013 06:52:23 UTC-4, poetix wrote:
>
> I really like the look of this:
>
> http://readable.sourceforge.net/
>
> which defi
Here's a cheezy hack, use identity.
#(identity {:foo %})
On Thursday, 28 March 2013 17:51:10 UTC-4, Ryan wrote:
>
> Thanks for your explanation Jonathan. I am still a bit confused however
> what is the proper solution here. Should i use an anonymous function
> instead to do what I want or can i
Also, nice syntax highlighting! How'd you do that?
On Saturday, 30 March 2013 23:54:03 UTC-4, JvJ wrote:
>
> get-method. Thanks, that was exactly what I was looking for!
>
> On Saturday, 30 March 2013 07:20:54 UTC-4, Chas Emerick wrote:
>>
>> On Mar 30, 2013, at 12:00 AM, George Oliver wrote:
>>
get-method. Thanks, that was exactly what I was looking for!
On Saturday, 30 March 2013 07:20:54 UTC-4, Chas Emerick wrote:
>
> On Mar 30, 2013, at 12:00 AM, George Oliver wrote:
>
>
>
> On Friday, March 29, 2013 6:19:19 PM UTC-7, JvJ wrote:
>>
>> Is it possible to invoke a particular multimethod
That makes sense. Thanks.
On Friday, 29 March 2013 22:21:21 UTC-4, Alan Malloy wrote:
>
> Comparator.compare returns an int. (int 0.2) and (int -0.2) both
> return 0. Thus, your comparator is returning 0, saying "I don't care
> what order these go in".
>
> On Mar 29, 6:44 pm, JvJ wrote:
> >
It's so obvious when you point it out.
On Saturday, March 30, 2013 10:02:30 PM UTC-4, Lars Nilsson wrote:
>
> On Sat, Mar 30, 2013 at 9:49 PM, larry google groups
> > wrote:
> > (def initial-data
> > :slides {
> > :who-is-going-to-summer-camp { :public-text "Who is
> goi
On Sat, Mar 30, 2013 at 9:49 PM, larry google groups
wrote:
> (def initial-data
> :slides {
> :who-is-going-to-summer-camp { :public-text "Who is going to
> summer camp?
>
> :order-of-appearance 1
>
I understand that this error frequently appears when someone accidentally
puts a map into the first position of a list, and so the map is called as a
function:
Exception in thread "Thread-13" clojure.lang.ArityException: Wrong number
of args (0) passed to: PersistentArrayMap
But I am not sure
Nice work!
On Saturday, March 30, 2013 1:39:12 PM UTC-4, David Powell wrote:
>
> Hi,
>
> I've put together an installer for Leiningen on Windows:
> http://leiningen-win-installer.djpowell.net/
>
> Hopefully it should make it a bit easier for Windows people to get
> Leiningen and a Clojure repl up
On Thu, Mar 28, 2013 at 6:36 PM, Andy Fingerhut wrote:
> (defn print-regex-my-way [re]
> (print "#regex ")
> (pr (str re)))
>
> That might be closer to what you want.
>
Yes. That does the trick. That extra level of converting the regular
expression to a string does the trick because pr "doe
Gary Trakhman writes:
> I made a little proof of concept last night. You could always look at
> bytecode that clojure emits in few ways, you can either hack the compiler
> yourself, or force AOT in your project and use javap. The first approach
> is a bit intrusive, and the second has a some
On Thu, Mar 28, 2013 at 7:52 PM, Mikhail Kryshen wrote:
> On Thu, 28 Mar 2013 17:08:46 -0700
> Mark Engelberg wrote:
>
> > Bug or feature?
>
> Certainly a feature for complex patterns with whitespace and embedded
> comments.
>
> For example, the following regexp parses line in Combined Log Format
use the function alength
Alice writes:
> Why doesn't (.length (int-array 5)) work?
> Why should I use alength or count instead?
>
> --
--
--
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
Hi,
I've put together an installer for Leiningen on Windows:
http://leiningen-win-installer.djpowell.net/
Hopefully it should make it a bit easier for Windows people to get
Leiningen and a Clojure repl up and running.
It requires a JDK to be installed first, but other than that there aren't
any
It seems that .length isn't a real field at the JVM level - it is just part
of the Java - the language. The JVM has a special arraylength op-code for
getting the length of arrays.
On Sat, Mar 30, 2013 at 5:17 PM, Alice wrote:
> Why doesn't (.length (int-array 5)) work?
> Why should I use alengt
Why doesn't (.length (int-array 5)) work?
Why should I use alength or count instead?
--
--
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 - ple
2013/3/30 Gary Trakhman
> Potential use cases:
>
> Writing fast code faster.
> Proving to newbies that clojure is not interpreted, further evidence of
> eval's coolness.
> Checking to make sure primitives are being used where you expect.
>
Great idea. This kind of information is very valuable wh
On Thursday, March 28, 2013 9:53:19 AM UTC-4, Michael Klishin wrote:
>
>
> 2013/3/28 Mark >
>
>> Do other people have this problem? Am I just too uncreative? Am I being
>> too terse?
>
>
> Simply exclude some clojure.core functions in your namespace declaration
> and use them as clojure.core/...
On Sat, Mar 30, 2013 at 10:09 AM, Nico wrote:
> BTW, it seems like knowing Clojure is a requirement to start using
> Clojurescript,
>
I think the general expectation has been that anyone using Clojurescript is
likely to be using both.
Maybe you should just learn Clojure? Between the many tutori
On Sat, Mar 30, 2013 at 9:06 AM, Gary Trakhman wrote
:
>
> Potential use cases:
>
> Writing fast code faster.
> Proving to newbies that clojure is not interpreted, further evidence of
> eval's coolness.
> Checking to make sure primitives are being used where you expect.
>
Scaring the bejesus out o
Clojurescript is Clojure...you may be able to skip some JVM
idiosyncrasies but it's the same language - no way around that!
Jim
On 30/03/13 14:09, Nico wrote:
Thank you very much sw1nn and John, both worked great. This goes to
show how much of a newb I am.
Sorry if this is the wrong group (j
Thank you very much sw1nn and John, both worked great. This goes to show
how much of a newb I am.
Sorry if this is the wrong group (just realized it is the Clojure group and
not Clojurescript one).
BTW, it seems like knowing Clojure is a requirement to start using
Clojurescript, do you guys k
https://github.com/gtrak/no.disassemble/
On Saturday, March 30, 2013 9:06:25 AM UTC-4, Gary Trakhman wrote:
>
> I made a little proof of concept last night. You could always look at
> bytecode that clojure emits in few ways, you can either hack the compiler
> yourself, or force AOT in your proj
I made a little proof of concept last night. You could always look at
bytecode that clojure emits in few ways, you can either hack the compiler
yourself, or force AOT in your project and use javap. The first approach
is a bit intrusive, and the second has a somewhat annoying turnaround time,
When you want a side effect and don't care about return values, it's
idiomatic to use doseq.
(doseq [c calls-log] (log-call c))
On Mar 30, 2013 4:23 AM, "Neale Swinnerton" wrote:
> ;(.log js/console (pr-str calls-log
>> (map log-call calls-log)))
>>
>> map is lazily evaluated, so if
On Mar 30, 2013, at 12:00 AM, George Oliver wrote:
>
>
> On Friday, March 29, 2013 6:19:19 PM UTC-7, JvJ wrote:
> Is it possible to invoke a particular multimethod and bypass the dispatch
> function?
>
> For instance, suppose that I have a multimethod with a dispatch value of
> ::foo, and it'
The implementation of Clojure sequence library predates protocols.
This is, however, the way forward, at least in clojurescript :
https://github.com/clojure/clojurescript/blob/master/src/cljs/cljs/core.cljs#L191
On 28 March 2013 14:49, vemv wrote:
> I recall from Rich's presentation on reducers
>
> ;(.log js/console (pr-str calls-log
> (map log-call calls-log)))
>
> map is lazily evaluated, so if you never read it's result nothing happens.
You can force evaluation with doall (and variants)
so...
(doall (map log-call calls-log))
will behave as you expect.
--
--
You re
28 matches
Mail list logo