ah sorry for that.. But it looks like I have grown very complacent about
clojure-functions doing the *"right thing"* .. my bad.
Sunil.
On Fri, Jun 10, 2011 at 12:06 PM, Meikel Brandmeyer wrote:
> Hi,
>
> Am Freitag, 10. Juni 2011 06:49:41 UTC+2 schrieb Sunil Nandihalli:
>
>> as long as (reversib
Hi,
Am Freitag, 10. Juni 2011 06:49:41 UTC+2 schrieb Sunil Nandihalli:
>
> as long as (reversible? of-whatever-collection) is true , last is almost a
> constant time operation
>
In theory, but not in practice. last will always be O(N) in it's current
implementation. The only fast way to get the
Per the doc, last is linear time, and the source doesn't check for reversible.
user=> (source last)
(def
^{:arglists '([coll])
:doc "Return the last item in coll, in linear time"
:added "1.0"}
last (fn last [s]
(if (next s)
(recur (next s))
(first s
unless
On Thu, Jun 9, 2011 at 3:15 PM, Benny Tsai wrote:
> I've never built contrib from source, but I believe the repository you'll
> want to clone from is this one:
>
> git://github.com/clojure/clojure-contrib.git
The monolithic contrib library has been deprecated (and I'm not sure
you'll get it to bu
Two words came to mind when I saw Rich give this talk: mindfulness meditation.
I've found that when I try and focus too hard on a problem I get tunnel vision
and ruminate instead of thinking /about/ and /around/ the problem I'm trying to
solve. I really do need to detach and let the problem grow
On Thu, Jun 9, 2011 at 7:50 PM, clojurefanxx wrote:
> (i 'm assuming that's the reason why
> last, nth, and get were rejected when I tried them out as candidate
> solutions??)
The 4clojure tests are intended to get you to write solutions without
the "simple, obvious" function. Sometimes they actu
as long as (reversible? of-whatever-collection) is true , last is almost a
constant time operation
On Fri, Jun 10, 2011 at 8:20 AM, clojurefanxx wrote:
> i'm a newbie working thru 4clojure.com's problems #19 thru #21 where
> i'm asked to write a function, which when given a list or vector,
> ret
I'm fairly new too, but I'll take a stab. I think the koan's for
19-21 are trying to make you do exactly what you are doing: consider
the performance characteristics for various operations on a vector vs
a list or sequence.
Problem 19, for example, is highlighting that
1 - Last is slow for a vec
i'm a newbie working thru 4clojure.com's problems #19 thru #21 where
i'm asked to write a function, which when given a list or vector,
returns the last, penultimate, or an arbitrary nth element,
respectively.
for problem #19 (return last element), using the function last was not
accepted as a good
On Thu, Jun 9, 2011 at 8:20 AM, Jeff Dik wrote:
> With clojure-mode 1.9.2 and (GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600)
> of 2009-07-30 on SOFT-MJASON) (according to emacs-version), I had to
> change a s-exp on line 848 in clojure-mode.el from
>
> (expand-file-name clojure-root)
>
> to
>
> (
OK, I just tried a totally clean install of emacs 24 (I had been using
emacs 23.1), first deleting my existing .emacs.d directory and tried
to do the absolute minimum that the instructions specified. I added
the marmalade package repository to my .emacs file. I installed
clojure-mode and clojure-
On Jun 9, 2011, at 11:49 AM, Laurent PETIT wrote:
> I've seen people coming from a java background quite happy to start
> discovering clojure via the 4clojure website.
Hey, I've got an idea: Maybe we could get the 4clojure folks to hook their
site up to Twitter to let us know how people solve
Thanks.
I went to http://clojure.org/downloads and downloaded both the latest
stable Clojure and its contrib.
contrib built just fine and gave me the jar file I was looking for.
On Jun 9, 6:15 pm, Benny Tsai wrote:
> I've never built contrib from source, but I believe the repository you'll
> wa
I've never built contrib from source, but I believe the repository you'll
want to clone from is this one:
git://github.com/clojure/clojure-contrib.git
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googl
1) I cloned clojure-contrib from github.
git clone git://github.com/richhickey/clojure-contrib.git
Completed successfully.
2) Then, I installed maven and in the clojure-contrib sub-directory
entered this command
mvn package.
Completed without errors.
3) When I look for clojure-contrib.jar in t
I did state my problem wrong. The error is if I tab before the menu appears.
I did some digging around..
Turns out a weird string gets passed to slime-simple-completions via
ac-prefix.
Suppose it's a bug in auto-complete-mode.
#("mapcat" 0 6 (selection-face ac-slime-selection-face popup-face
ac-s
I've seen people coming from a java background quite happy to start
discovering clojure via the 4clojure website.
2011/6/9 Santosh M :
> Yes I'm from a java background only, not worked with LISP.
> Will do that.
>
> Thank you all for the help. Just wrote the "Hello World" clojure
> program. :)
>
>
On Jun 9, 2011, at 3:27 PM, Jules wrote:
> I'd also like to say this - TAKE THE HAMMOCK BIT SERIOUSLY - there is a
> growing body or research that indicates that you can problem solve better
> lying down. This may stem from the release of certain hormones, increased
> blood supply, maybe simply
Yes I'm from a java background only, not worked with LISP.
Will do that.
Thank you all for the help. Just wrote the "Hello World" clojure
program. :)
On Jun 9, 9:10 am, Jeff Heon wrote:
> As you're coming in from Java, I think Clojure in Action is a good way
> to start.
>
> On Jun 9, 12:15 am, S
As you're coming in from Java, I think Clojure in Action is a good way
to start.
On Jun 9, 12:15 am, Santosh M wrote:
> I just found out three books on closure, please tell me which is the
> best one to start with?
>
> 1 - The Joy of Clojure
> 2 - Programming Clojure
> 3 - Practical Clojure
--
With the deprecation of contrib, are there plans to migrate
clojure.contrib.combinatorics to a new stand-alone module? I wasn't
able to find anything on this on either the wiki or mailing list, and
was curious.
Thanks,
Chris
--
You received this message because you are subscribed to the Google
On Wed, Jun 8, 2011 at 8:36 PM, Mark Engelberg wrote:
> It's been a couple of weeks, so I thought I'd check in and see whether
> anyone has yet been successful at using the new clojure-jack-in
> process on Windows. Did the 1.9.2 release successfully resolve the
> "cannot find the path specified"
I'm a bit late watching this :
http://blip.tv/clojure/hammock-driven-development-4475586
but thought I would comment anyway :
I enjoyed it and identified with most of it - Having worked in commercial
and open source programming I can say that from experience that the latter
gives you the most
On Wed, Jun 8, 2011 at 9:25 AM, looselytyped wrote:
>
> Finally, I agree with many others on this thread - Emacs is a popular
> editor among many a lisp programmer, and Clojure is no different.
> Unfortunately if you are not familiar with it, it presents a two-fold
> problem - you need to learn to
And don't forget 'How to Design Programs' - http://www.htdp.org
Paudi
On 9 June 2011 11:04, Bhinderwala, Shoeb wrote:
> To start thinking functionally, I would also highly recommend reading the
> book Structure and Interpretation of Computer Programs:
>
> http://mitpress.mit.edu/sicp/
>
>
> ht
Exactly which example did you try?
Did you try running it from a simple REPL outside of Eclipse?
fxt
On Jun 8, 10:06 pm, jaime wrote:
> I tried to run the example behind a proxy but the connection failed.
> Anyone who knows how to resolve this??
>
> I'm using Eclipse and plugin counterclockwise
To start thinking functionally, I would also highly recommend reading the book
Structure and Interpretation of Computer Programs:
http://mitpress.mit.edu/sicp/
http://en.wikipedia.org/wiki/Structure_and_Interpretation_of_Computer_Programs
This book is available freely at the above sites. A b
If you are coming from java, I think that a book on (common) lisp would be
far better. Especially since practical clojure is essentially a reference
(and a good one). I would recommend 'practical common lisp' and 'land of
lisp'.
http://www.gigamonkeys.com/book/
http://landoflisp.com/
Jonathan
On
Thanks Phil for the good work.
Emacs v23 didn't work for me in either Windows XP or Windows 7.
So, I searched and found Emacs 24 at:
http://code.google.com/p/emacs-for-windows/updates/list
clojure-jack-in with Emacs 24 worked seamlessly with Windows 7 (64 bit).
With Windows XP, clojure-jac
http://ftp.gnu.org/gnu/emacs/windows/emacs-23.3-bin-i386.zip
Just tested a clean installation at work. No problems.
Remove your .emacs.d/ just to be sure.
Is there anything more to your error message than "cannot find the path
specified"?
I am using windows 7 btw.
2011/6/9 Mark Engelberg
>
Andreas, can you clarify exactly where you got emacs from? I got it from here:
http://ftp.gnu.org/gnu/emacs/windows/
Is there another/better source?
On Thu, Jun 9, 2011 at 1:18 AM, Andreas Liljeqvist wrote:
> One week ago on windows.
> install latest stable Emacs.
> install Emacs starter kit.
>
One week ago on windows.
install latest stable Emacs.
install Emacs starter kit.
M-x package-install clojure-mode
lein plugin install swank-clojure 1.3.1
Be sure to remove any old swank-clojure from your plugin dir.
invoke M-x clojure-jack-in from a project
Works for me atleast.
Phil - Thanks f
32 matches
Mail list logo