|
I have a java.util.HashMap object m (a return value from a call to Java code) and I'd like to get a new map with an additional key-value pair.
If m were a Clojure map, I could use:
(assoc m "key" "value")
But trying that on a HashMap gives:
java.lang....
Started by Frederic Daoud on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Clojure makes the java Collections seq-able, so you can directly use the Clojure sequence functions I was trying to compare memory characteristics of the clojure version vs java's (but used from clojure; Clojure gives....
|
|
I followed this very helpful guide on getting this development environment set up. When running the emacs.bat I get the following error in Emacs:
File error: Cannot open load file, clojure-auto
Unfortunitely I am completely new to both Clojure and Emacs...
Started by rcampbell on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I documented my own experience in installing Emacs and the latest Clojure from Git repositories into ....
HOME environment variable, I think the code there relies on it being C:\clojure-dev
Rather than clojure + emacs installation.
|
|
Hi,
What are best ways to Debug Clojure code, while using the repl in Clojure-box ?
Started by Icarus on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
A couple of relevant links: The Clojure....
You can.
The accepted answer to this SO question: Idiomatic Clojure is currently incompatible with swank-clojure 's REPL, but is too good not to mention: debug-repl .
Expand to body wrapped in a do.
|
Ask your Facebook Friends
|
If I want to learn Clojure, should I start by learning Scheme or Common Lisp?
Or is Clojure different enough from both of these, that I should just start learning Clojure by itself?
Started by uzo on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
All three have ....
The differences between Lisp and Scheme (and Clojure itself for that matter) shouldn't be a concern especially if you are just is best for your needs.
For your purposes I think you are safe to just start learning Clojure.
|
|
I am having a hard time writing type checks in Clojure. Pleas help me.
How do I write/perform 'char?' in Clojure? How do I write/perform 'atom?' in Clojure?
How do I know what type an item is in Clojure?
Can I write (type? an-item) ?
Started by kunjaan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Clojure uses, or anything that's not a pair", but....
Typically type questions in Clojure come down to asking "what class is this, or what primitive-wrapper-class can contain it." This comes from Clojure's first class treatment of java.
|
|
How practical is it to port a Common Lisp application to Clojure? To be more specific, what features exist in Common Lisp that do not exist in Clojure, and would have to be re-written?
Started by Colin on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
There are a number of accounts of transitioning from CL to Clojure ( blog , another blog , Thread....
Clojure for Lisp Programmers Stuart Halloway's work on translating the examples from Peter Seibel's Practical Common Lisp to Clojure.
|
|
What are the most significant differencies between the F# and Clojure ?
Which constructs has F# which Clojure does not have and vice versa?
Does F# have macros?
Started by nikolai on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
So F# has a more ML/OCaml/Haskell feel with emphasis on:
static typing type inference pattern... .
Thus is descended from ML while clojure is descended from lisp .
One key difference is that F# is a .NET language, whereas Clojure runs on a JVM.
|
|
I am starting to learn the Clojure programming language. Are there any recommendations for Clojure editors/IDEs on OS X?
Update 2009-9-23 : The clojure space has changed tremendously since I originally posted this question. Many of the links below, especially...
Started by Julien Chastang on
, 14 posts
by 14 people.
Answer Snippets (Read the full thread at stackoverflow):
I've always used TextMate + the Lisp bundle for writing Clojure switched to it after someone created a....
TextMate is a great editor and has a Lisp bundle, which will suffice for Clojure (there's also an in-progress bundle available here ).
|
|
Is it better to learn Clojure programming or Perl programming?
Started by ashebano on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
What are your reasons for picking Clojure and Perl?
I'd vote for Clojure! Clojure....
C# and Python for example.
Clojure??
If you want to learn a very cool modern language then Clojure is the way to go I could give you...
Erm....
|
|
I don't know much about functional programming but am interested in learning Clojure.
Are there any functional languages that would be a good point of reference to understand how functional programming works in Clojure?
Or is Clojure different enough ...
Started by uzo on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Remember that Clojure breaks significantly with Common Lisp though....
Clojure is a lisp so learning other lisps will help a lot in getting used to the parts of the "lisp culture" or general way of doign things.
Simple, common environment.
|