Swap requires an atom as an input.
https://clojuredocs.org/clojure.core/swap!
If you are trying to perform swap! on a collection that was just read from
json/read-str then it is probably not an atom, and you would need to
convert it to an atom before doing this.
However, generally there are
This is really cool. Could you share some examples of the SVG animations you
have been playing with?
--
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
Peter,
This looks great! can't wait to try it out.
Well done.
On Wednesday, February 26, 2014 7:57:24 AM UTC-6, Peter Taoussanis wrote:
>
> Hi folks,
>
> Quick post to announce a new lib release:
> https://github.com/ptaoussanis/sente
>
> From the README:
> *Sente* is small client+server libra
Fantastic!!!
On Tuesday, June 26, 2012 3:31:28 PM UTC-5, Sam Aaron wrote:
>
> Hi all,
>
> I just thought I'd give you a quick heads up that Overtone 0.7 has been
> released. It represents around 6 months worth of solid work (~500 commits)
> and we're really rather pleased with how far we've com
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
Agreed. Pretty damn sweet!
On Feb 27, 6:01 pm, John Szakmeister wrote:
> On Mon, Feb 27, 2012 at 3:14 PM, Chris Granger wrote:
> > Hey folks,
>
> > In reference to the previous thread on "Inventing On Principle", I
> > built a ClojureScript example of his live editable game :)
>
> >http://www.c
Hi All -
So I have been *attempting* to make the switch to emacs and am running
into some issues with clojure-jack-in in Aquamacs.
This used to work pretty reliably. Today I tried to jack in and got
the following error:
Starting swank server...
cd /Users/bhajj/Documents/workspace/music/ && lei
Well, that explains why i cant get this stuff working like that!!
Thanks David.
On Feb 7, 11:22 am, David Nolen wrote:
> On Tue, Feb 7, 2012 at 11:18 AM, Base wrote:
> > Hi All -
>
> > I am finding that I am confused on the differences of using clojure
> > librarie
? I cannot seem to
get this to work correctly and end up dropping the files in the
directory defined in the :source-path in the project.clj.
Thanks
Base
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email
+1 Mark.
On Jan 31, 1:59 pm, Mark Engelberg wrote:
> On Tue, Jan 31, 2012 at 6:18 AM, Baishampayan Ghose wrote:
> > As you might know, the monolithic clojure contrib from 1.2 got split
> > into many independent
> > contrib projects. The changes are quite well documented here -
>
> I know there'
Thank you all!
David, as always, greatly appreciated!
On Jan 23, 11:09 pm, David Nolen wrote:
> On Tue, Jan 24, 2012 at 12:00 AM, Cedric Greevey wrote:
> > On Mon, Jan 23, 2012 at 11:41 PM, David Nolen
> > wrote:
> > > (def homo-sapiens
> > > {:domain :eukarya
> > > :kingdom :animalia-met
appreciated!
Thanks!
Base
--
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
All I can say is WOW! This is absolutely fantastic.
Thank you and Congratulations to all who helped put this together. It
is so appreciated.
Base
On Jan 11, 1:27 pm, Brenton wrote:
> Today we are releasing ClojureScript One. A project to help you get
> started writing singl
a map of maps
instead...
{ 1 { 2 "value 1"
3 "value 2"}
4 {5 "value 3"
6 "value 4"}}
but this just doesnt feel right.
I will need to add and remove values regularly and this will be a
large data structure (often 10K entries) and will need t
I look forward to it.
On Nov 17, 2:42 pm, David Nolen wrote:
> On Thu, Nov 17, 2011 at 3:39 PM, Base wrote:
> > It mentions:
>
> > "The one important difference is in calling no-argument methods. In
> > Java (. x toString), where toString is a method, would una
Doh! I am so used to Clojure at this point I actually forgot about
about mutable data structures.
Thanks David!
On Nov 17, 2:38 pm, David Nolen wrote:
> setDate mutates the date and does not return a value.
>
> David
>
>
>
>
>
>
>
> On Thu, Nov 17, 2011 at 3:2
On Nov 17, 2:33 pm, Matt Hoyt wrote:
> (.setDate (goog.date.fromIsoString "2010-12-31") 1)
>
> Matt Hoyt
>
>
> From: Base
> To: Clojure
> Sent: Thursday, November 17, 2011 2:26 PM
> Subject: ClojureScript: Correct way to
setDate) 1)
and
(. (goog.date.fromIsoString "2010-12-31") (setDate 1))
yield Undefined.
Any thoughts? I am sure this is an easy one but I am stuck.
Thanks in advance
Base
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To pos
Hi -
I have found this site *very* useful.
http://clojuredocs.org/quickref/Clojure%20Core
On Nov 10, 9:50 am, Christian Romney wrote:
> Hi all,
>
> As part of my effort to learn Clojure, I'm looking for examples of
> good (open) source that makes use of STM and other concurrency
> features. I
Actually it should read:
(sql/defentity mytable
(:pk <<< YOUR PRIMARY KEY AS A KEYWORD>>>)
(sql/table <<>>)
(sql/database devdb))
(sql/select mytable (sql/fields :id) (sql/where {:id 1}))
On Nov 4, 3:21 pm, Base wrote:
> Did you mean to define the sele
Did you mean to define the select within the defentity?
(sql/defentity mytable (sql/select mytable (sql/fields :id) (sql/
where {:id 1})))
I does this work?
(sql/defentity mytable
(:pk <<< YOUR PRIMARY KEY AS A KEYWORD>>>)
(table <<>>)
(database devdb))
(sql/select mytable (sql/fields :
Not really. ClojureScript only supports AOT compiling. So you would
have to compile the ClojureScript code into javascript on the server
and send that over the wire.
On Oct 27, 1:27 am, Guofeng Zhang wrote:
> Hi,
>
> Suppose there is a ajax request comes to the server. The server code process
fly. Then I refresh the browser.
>
> It does most of the job.
>
> Luc P.
>
> On Thu, 27 Oct 2011 10:27:29 -0700 (PDT)
>
> Base wrote:
> > Hi All -
>
> > Do any of you happen to know if Counterclockwise supports the
> > development of apps usi
Hi All -
Do any of you happen to know if Counterclockwise supports the
development of apps using ClojureScript?
Thanks!
Base
--
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
Can you create a db view for this? I have often tried to build this
sort of thing into the db as much as possible to reduce the complexity
of the app code and since this Ultimately what db's do well. Of
course if you don not have create rights in the db you can't do
that...
On Oct 7, 7:55 am, Si
Very very nice!
On Aug 18, 10:34 pm, Christian Romney wrote:
> Hi all,
>
> As part of my attempt to learn Clojure, I've cooked up a simple
> Prisoner's Dilemma simulation. I'd love any feedback the group would
> care to provide about my implementation, as I'm eager to improve. I've
> got thick s
oes return correctly)
Any help is most welcomed!
Thanks,
Base
--
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 pat
pt ecosystem is in its infacy, but more will
> come. :-)
> On Aug 5, 2011 12:39 PM, "Base" wrote:
>
>
>
>
>
>
>
> > Hi All -
>
> > When I was getting started with Clojure the labrepl was SO helpful.
> > Does something like this exist for
Hi All -
When I was getting started with Clojure the labrepl was SO helpful.
Does something like this exist for ClojureScript to help people get
started?
Thanks
Base
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group,
I hope not, because I would *love* that!
On Aug 3, 7:23 pm, Laurent PETIT wrote:
> Hello,
>
> Do you know, given the licence of ClojureScript dependencies (which I don't
> know in details), if doing the following would go against their licenses ? :
>
> basically, a zip with pre-packaged fixed/tes
Thank you for all of your help Eduardo!
On Aug 1, 8:17 pm, Eduardo Julian wrote:
> I have been working on this library for a little while and I would
> like to present it to you:https://github.com/eduardoejp/clj-orient
>
> I hope this can be of help for the Clojure and OrientDB communities.
--
+1
On Jul 26, 12:31 pm, Devin Walters wrote:
> Let's stop feeding this thread and turn our attention toward healthy and
> productive discussion. This is my first and final post on this matter.
>
> Sent via Mobile
>
> On Jul 26, 2011, at 9:56 AM, James Keats wrote:
>
>
>
>
>
>
>
>
>
> > On Jul 2
"Why should we care what kind of Javascript ClojureScript generates,
as long as it's correct and performant? The whole point of the project
is to allow us to write Clojure rather than Javascript!"
James, you do get this point, right? Just like GWT allows you to
program in Java to write JavaScript
(map #(get % ["45"]) d)
On Jul 5, 12:49 pm, "Bhinderwala, Shoeb"
wrote:
> I need help to write a small filtering function. Given the following
> definitions:
>
> (def m1
> {["45"] {:a 45 :b "day1"}
> ["55"] {:a 55 :b "day1"}
> ["25"] {:a 25 :b "day1"}
> ["15"] {:a 1
Found at: http://lambda-the-ultimate.org/node/4300
Scala ported to run on the Mozart VM.
--
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 - pl
I agree with David when he says that this is not really relevant. As
a relative newbie to Lisps I have found that Clojure, while very Lispy
in so many ways, is actually more different than I initially thought.
It is really a hybrid of many languages wrapped in s expressions,
which is what makes
Incanter also has CSV support
http://liebke.github.com/incanter/io-api.html
On Jun 6, 1:08 pm, octopusgrabbus wrote:
> Is there a core Java library that handles .csv files or do I need to
> download something like OpenCsv? Thanks.
--
You received this message because you are subscribed to th
ry called HtmlCleaner. You might wanna give that a shot.
> > Btw, I'm working on quite a similar project so if you like email me and we
> > can maybe join forces.
> > Andreas
>
> > On 06/06/2011, at 11:01 AM, Base wrote:
>
> >> hi all,
>
> >>
have any experience doing this? Any tips On how to do
this - or even better, tools that you can recommend? I have been
digging around on this for a while now and am stuck!
Thanks!
Base
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To po
'e 'f 'g]
I need this to be *really* efficient (who doesn't, right)
Sort of looping through this, what is the best way?
thanks
base
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to
011 at 12:04 PM, Base wrote:
> > It is possible to extend types at runtime to add new behavior
> > dynamically?
>
> Yes, an example here,http://dosync.posterous.com/51626638
>
> David
--
You received this message because you are subscribed to the Google
Groups "Cloju
It is possible to extend types at runtime to add new behavior
dynamically?
--
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
Ahhh -
Thanks all. Most educational! This does make sense - I will try and
deconstruct some of the examples where this is used to get a sense of
when / why it is used. But this helps *tremendously*!!
Thanks!!!
On May 7, 2:09 pm, Sean Corfield wrote:
> On Sat, May 7, 2011 at 8:51 AM, B
At the risk of sounding completely dense, I am having a hard time
understanding the purpose of the Identity function. As far as I can
tell all it does is return what is passed to it.
Review code I see it used all the time, and cannot understand why it
is needed.
Any insight?
Thanks
Base
Google Collections has a multimap that could help you with this. It
is pretty cool.
As a note they actually push immutability pretty hard - maybe Rich got
to them?
http://guava-libraries.googlecode.com/svn/tags/release09/javadoc/com/google/common/collect/Multimaps.html
On May 1, 10:57 pm, "Bh
Fantastic. I will look into all of them! Thanks much all.
On Apr 6, 7:47 pm, Hwee-Boon Yar wrote:
> On Apr 5, 7:31 am, Base wrote:
>
> > Hi Group!
>
> > I am hoping to get a little help figuring out how to profile my app.
>
> > I have been working on this fo
profile your app to look to find the performance
bottlenecks?
Any help is most appreciated and would definitely be a good learning
experience for us newbies.
Thanks!
Base
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this g
Thank you all so much (and michaelyou rock!!)
I will give Riak a shot.
Thanks again.
On Mar 26, 5:55 pm, Benny Tsai wrote:
> A Clojure wrapper for neo4j was recently
> posted:https://github.com/wagjo/borneo
>
> There's also Jiraph, another embedded graph database for
> Clojure:https://gi
, 2011 at 09:56, Base wrote:
>
> >> hi All -
>
> >> Any recommendations on a NoSQL database to use with clojure? I am
> >> experimenting if it will fit my project better than a SQL db and have
> >> no real experience with them.
>
> > I'v
hi All -
Any recommendations on a NoSQL database to use with clojure? I am
experimenting if it will fit my project better than a SQL db and have
no real experience with them.
Strong clojure support is obviously important for this. The only one
I know of is MongoDb...
Thoughts??
Thanks
Base
gain this increase in speed? Are there some things that
you can do with maps that you cannot do with defrecord?
On Feb 18, 3:05 pm, Stuart Sierra wrote:
> Hi Base,
>
> It's easy, because instances of defrecord behave identically to maps. Say
> you have a lot of "per
Hi Stuart -
I am very much still learning Clojure and havent waded into defrecord,
etc.
Could you provide an example of how you wold start with a map and
shift to a defrecord in the future?
Thanks
Base
On Feb 18, 11:16 am, Stuart Sierra
wrote:
> One purpose of defrecord was to
I'm with Andreas, and would love some help dissecting this a bit
further.
On Feb 15, 6:53 pm, Andreas Kostler
wrote:
> Laurent,
> I've been studying your implementation for a while now and can't really fully
> grasp it.
> Can you elaborate a bit on the algorithm?
> Cheers
> Andreas
>
> On 16/02/
Thank you Laurent and Ken. Both great responses.
What I was forgetting was that vector is a function of the index.
This now makes total sense and I feel like a dummy for not getting
it. Thanks for your responses.
On Feb 3, 3:44 pm, Laurent PETIT wrote:
> 2011/2/3 Base :
>
>
>
&
Thats the one!
Now I just have to understand it...
The first apply is throwing me a little.
On Feb 3, 3:29 pm, Laurent PETIT wrote:
> Hello,
>
> 2011/2/3 Base :
>
> > Hi All -
>
> > I recall seeing a beautiful method for doing the following on this
> >
Hi All -
I recall seeing a beautiful method for doing the following on this
site, but cannot seem to find it
I would like to transform
(def a [[1 2 3]
[4 5 6]
[7 8 9]])
to
[[1 4 7]
[2 5 8]
[3 6 9]]
Thanks
--
You received this message because you are subscribed to the Goog
I really enjoyed 'Programming Clojure'. I thought it was written at
an appropriate level for a beginner (which I most certainly am). It
explained a lot of the concepts like laziness and recursion in a way
that helped out with these concepts at a basic level while still
giving some non-trivial exa
For what it's worth, I installed CCW on Eclipse Helios on Win7
yesterday and it works perfectly. Thanks Laurent!
On Jan 18, 9:27 am, Laurent PETIT wrote:
> 2011/1/18 Ken Wesson
>
>
>
>
>
>
>
>
>
> > On Tue, Jan 18, 2011 at 4:46 AM, Laurent PETIT
> > wrote:
> > > Hi,
> > >> No menu options exis
)
Any ideas if this is possible and if so the syntax?
Thanks much in advance
Base
--
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 moder
HI Clojurians -
I found a reference to this interesting paper on macros on Lamda the
Ultimate. An interesting read by the our old friend Matthias
Felleisen who helped many of us learn Lisp.
http://www.ccs.neu.edu/scheme/pubs/icfp10-cf.pdf
--
You received this message because you are subscr
the number.
This seems like a great place to use regexhow would one craft a
pattern for this?
Thanks
Base
--
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 post
Awsome!
Thanks much steve!
On Jul 30, 9:14 am, Steve Purcell wrote:
> On 30 Jul 2010, at 15:03, Base wrote:
>
>
>
> > Hi All
>
> > I have a vector in the following format:
>
> > [
> > ["M" "3.4" "5.6"] ["L" &
Ls
3 Cast all of the remaining numbers to Float
4 Apply Max to each of the vectors.
There *has* to be a more elegant way to do this than I have been
trying.
Any thoughts are appreciated as usual!
Base
(def v [["M" "3.4" "5.6"] ["L" "4.2" "
way to use reduce in this
application, but am not quite there yet. I will study up!
Thanks again for the help!
Base
On Jun 22, 2:56 am, Justin Kramer wrote:
> I took a crack at it. Whenever I think of building up a structure, I
> think of reduce or into. Like Meikel, I create a nested,
of nodes in the tree will be 3,
but this *could* change in the future.
As always, any help is most appreciated.
Thanks
Base
--
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
Very very nice!
On Jun 14, 11:14 am, Brenton wrote:
> Hello group.
>
> I have been working on a relational mapping library for Clojure named
> Carte.
>
> http://github.com/brentonashworth/carte
>
> The current version is what I would consider to be a working prototype
> and I would love to get f
ty of a search based on some criteria.
As you can tell i am still trying to formulate a strategy...I would
really appreciate some input on how to structure this data/application
and the use of hierarchies in this way, as well as alternative ways to
accomplish this.
Thanks much in advance.
Base
the app). It is located at:
http://github.com/relevance/labrepl
This is where I would start. It has helped me out immensely.
Cheers
Base
On May 27, 6:53 am, Paul Moore wrote:
> Hi,
> I'm new to Clojure, and looking for the best way to get going. I've
> got a pretty broad
Hi Harrison.
Welcome!
I am not familiar with netbeans but reading the labrepl instructions
it appears that dependencies will auto resolve.
Is there an error? Any more info?
On May 26, 5:34 pm, Harrison Maseko wrote:
> Hi all,
> The instructions on the labrepl git page says to "download missin
There are several libraries that I have heard of. Here is a list of
several.
http://java-source.net/open-source/pdf-libraries
I have only tried out iText and FOP with mixed results.
On May 24, 5:22 pm, Jim Tittsler wrote:
> Is there a library for generating PDF pages/reports with Clojure? (
woo hoo! Look forward to it.
On May 25, 7:48 am, Craig Andera wrote:
> > I'm happy to announce Clojure/core, a joint endeavor between myself
> > and Relevance, Inc.
>
> Congratulations to everyone involved! Very exciting!
>
> --
> You received this message because you are subscribed to the Googl
Hi Shikhar -
I strongly recommend checking out the labrepl example created by stu
halloway. It is a great starting point for eclipse/counterclockwise
and helped me quite a bit as a framework for starting new projects.
http://github.com/relevance/labrepl
cheers.
On May 24, 10:08 am, Shikhar wr
t was
> > working 2 days ago. Any changes in the masters that you all know of
> > that could account for this? Any ideas on how to fix?
>
> > Thanks much! These problems are hard to figure out until I am fully
> > caffeinated.
>
> > Base
>
> > --
&
the basis for setting this project up. It was
working 2 days ago. Any changes in the masters that you all know of
that could account for this? Any ideas on how to fix?
Thanks much! These problems are hard to figure out until I am fully
caffeinated.
Base
--
You received this message because
Thank you all so much!! As always, I learn a lot from this forum.
On May 18, 12:50 am, Jarkko Oranen wrote:
> On May 18, 2:23 am, Base wrote:
>
> > (defn lazy-date-seq [d1 d2]
> > (let [start (-> d1
> > (.dayOfMonth)
> > (.w
14:36:23 -0700 (PDT)
>
> Base wrote:
> > Hi All -
>
> > I am trying convert a function to use loop/recur and am getting the
> > dreded
>
> > "java.lang.UnsupportedOperationException: Can only recur from tail
> > position (repl-1:414)" error
&g
ing at the first of the month until it is past the second date.
This works using standard recursion but I wanted to use TCO.
Any help is most appreciated (as usual...!)
Thanks
Base
(def date-seq
(fn [d1 d2]
(loop [b (-> d1
(.dayOfMonth)
(.withMinimumValue))
Thanks much Saul. This is exactly what I am looking for! Let the
webapps begin!
On May 16, 7:15 am, Saul Hazledine wrote:
> On May 15, 5:23 pm, Base wrote:
>
> > So I would love to hear what others have done in the past to integrate
> > clojure into a web app. Any
#/) that has been leveraged using clojure (http://
www.nsa.be/index.php/eng/Blog/Using-Jwt-yes-it-s-a-J-with-Clojure)
that has potential.
So I would love to hear what others have done in the past to integrate
clojure into a web app. Any info would be most appreciated.
Thanks all
Base
--
You
I just replaced 443 lines of java with 61 lines of Clojure.
THANK YOU RICH !!!
--
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 pa
choose to install at the same time of ccw !
>
> This new feature will add support for creating new example projects
> based on the labrepl, yay !
>
> Cheers,
>
> --
> Laurent
>
> 2010/4/25 Base :
>
>
>
> > Hi all -
>
> > I was trying to configure Ecli
Hi all -
I was trying to configure Eclipse to work with CounterClockwise and
Incanter and ran into some difficulties until I found this fantastic
tutorial by Stuart Holloway on Assembla. It is a fantastic template
for getting things up and running and has a great Clojure tutorial as
well. I want
Hi ALl
I am using CounterClockwise for Eclipse and for some reason I keep
getting the error:
Unable to resolve var: juxt in this context (repl-1:34)
This happens when I fire up the repl in the user NS or when I do:
(ns testit
(:require clojure.core))
What am I missing here? It has to be som
Thank you all!
I knew there was something simple that i was missing!
On Apr 22, 7:28 am, Douglas Philips wrote:
> On 2010 Apr 22, at 8:17 AM, Base wrote:
>
> > say i have a string that contains a form:
>
> > "(+ 1 1)"
>
> > I want to actually execute th
Hi all -
say i have a string that contains a form:
"(+ 1 1)"
I want to actually execute this. How do you do this? I thought that
eval would be able to handle this but apparently am misunderstanding
what eval does.
Thanks!
Bassel
--
You received this message because you are subscribed to th
your help guys.
On Apr 21, 12:36 pm, Michał Marczyk wrote:
> On 21 April 2010 19:02, Base wrote:
>
> > I am having a hard time destructuring a nested data structure.
>
> > I am starting out with:
>
> > {:tag :column,
> > :attrs nil,
> > :content
> &
not sure destructuring is possible here. Would it be
> easier to put an extractor fn in place?
>
> (defn extract
> [arg]
> (apply hash-map (map (juxt :tag :content) (:content arg
>
> Just a thought. I'm sure someone will have a better idea, though.
>
> On Apr 21, 1:02 pm,
Hi All -
I am having a hard time destructuring a nested data structure.
I am starting out with:
{:tag :column,
:attrs nil,
:content
[{:tag :name, :attrs nil, :content ["agecat"]}
{:tag :value, :attrs nil, :content ["nil"]}
{:tag :threshold, :attrs nil, :content ["0.05"]}]}
and am looking
You are THE MAN! Thank you so much Meikel !!!
On Apr 9, 10:24 am, Meikel Brandmeyer wrote:
> Hi,
>
> On Apr 9, 5:16 pm, Base wrote:
>
> > (with-connection db
> > (transaction
> > (map insert-user users )))
>
> > Any thoughts on why this is occu
HI Group!
I am attempting to use sql for inserts into H2 db. It works quite
well when inserting a single record, however when I try and map an
insert function over a collection i keep getting an exception saying :
java.lang.Exception: no current database connection
I defined a function, insert-
Hi All -
I have a question about into.
When you run the into against a map you get a vector of
(into [] {:a 1 :b 2})
=> [[:a 1] [:b 2]]
However when you use a for in front of this you get the full map.
(into [] (for [_ (range 1)] {:a 1 :b 2}))
=> [{:a 1, :b 2}]
Why is this? I would have ex
Wow - there are so many ways to skin a cat (and dog, bird, horse,
wolf, and pig!)
These are all great. Thank you all so so much
James - I really appreciate walking me thru the methodology. that is
a big help for those of us just gettting started (particularly when we
dont have much lisp experie
k" :number-of-feet "4"})
)
*spacing added for clarity*
I have tried a few goofy attempts at this that were somewhat
successful. but what I don't like is that most of my attempts (which i
am kind of embarrassed to post) end up looking very un-clojuresque,
and much more
erformance issues with it and am trying to speed up this
operation. I have a data set with around 130,000 rows so a map would
really help pare things down in a hurry...
Sorry for the *really bad* question!
Thanks
Base
--
You received this message because you are subscribed to the Google
Groups "
2 things about Clojure
1. It amazes me how easy it is to get things done
2. The Clojure Group members are fantastic!
Thanks guys!!
On Feb 16, 10:19 pm, Mark Engelberg wrote:
> dotimes is for side effects. What you want is to use a for loop that
> produces a sequence of key-value pairs.
>
>
Hi All,
I am struggling with inserting items into a map.
I would like to create a function that would create a map that would
look like
{ 0 [ 01 2 3] ,
1 [0 1 2 3] ,
2 [0 1 2 3] }
and want to do something like
(defn create-map []
(into {} (dotimes [x 2] (assoc x (range 4)
but t
Fantastic!
A million thank yous Michal!
On Feb 11, 3:40 pm, Michał Marczyk wrote:
> How about
>
> (for [line (ds/read-lines file)]
> (apply struct location
> (rest (re-match #"([\w ]+)\t([\w ]+)\t([\w ]+)\t" line
>
> ?
>
> Or
>
> (for [line (ds/read-lines file)]
> (let [[_ city state
)]
_CANNOT_FIGURE_OUT_WHAT_TO_DO_HERE)))
Any help would be tremendously appreciated!
Thanks
Base
--
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 m
Hi John -
Thanks for a very intersting response.
Do you have any real experience in F#? I am really interested in
hearing your opinion/thoughts on it relative to other functional
languages (you appear to be quite well versed). It looks very
interesting, but I am frankly having a hard enough tim
Hi
Pulling off of GIT I got the following 4 errors in the unit tests:
FAIL in (test-relative-path-string) (run-test5258617284758852043.clj:
45)
absolute path strings are forbidden
expected: (thrown? IllegalArgumentException (relative-path-string "/
baz"))
actual: nil
FAIL in (test-relative-pat
1 - 100 of 106 matches
Mail list logo