Might it be possible to use a map instead? Maps are designed to look values
up by a key which may differ from the value, which seems to be your use
case here.
If you have
{1 {:id 1, :foo bar},
2 {:id 2, :foo car}}
You can just do
(disj my-map 2)
To convert the original set into a map, you
I'm sure that some level of moderation is necessary to keep the list clean,
but does it have to be so draconian?
Hmm, I didn't even know the list was moderated (beyond first post
moderation which I'd assume was the norm on Google Groups). Perhaps
Clojure/core can comment on what the actual
Hi all,
I've recently moved to Wollerau near Zürich in Switzerland. There was
a thread (about a year old) from Clojurians in the area, but it does
not seem there are any regular meetups. Are there any interested
Clojurians in the area?
Short description of myself: I'm Danish, working for a
Hi Thomas, Marco, all,
a few weeks back I sent an email to every contact I could find
for all the European user groups listed here
http://dev.clojure.org/display/community/Clojure+User+Groups to let
them know about EuroClojure in May.
I'd love to have an informal meet the user group
Hi Marco,
would you add me to the mix? I want to build up a users group for Frankfurt
am Main (Germany). However, at the moment it has only one semi-active
member, myself. Nevertheless I'd like to take part in the meet the group
event - should it happen - to exchange experiences a bit for
The policy is entirely controlled by Google Groups. I think it's
time-based.
-S
--
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
Il giorno 22/mar/2012, alle ore 10:21, Marco Dalla Stella ha scritto:
Hi,
I just want to know if there are any other italian Clojure users in
the ml, maybe for open an Italian Clojure User Group and organize some
meetings...
Here’s one (or at least I’m trying :) ).
Thanks,
--
Marco
In the Clojure case you extract the chunk with
tangle mydoc Clojure code file
and in the ClojureScript case you extract it with
tangle mydoc ClojureScript code file
This adds an cumbersome step to the build process, adds an external
dependency, and is exactly the kind of thing I want
Hi Andy
If anyone has suggestions for what you would like to see added to the
cheatsheet
It'd be great to have a tooltip appearing at every function I go over
with my mouse. Typically I click on a function just to realize Oh,
this is not the one I need so I have to go back. And this back
This needs a design page on Confluence. Anything under discussion should
probably address the new :refer.
David
On Thu, Mar 22, 2012 at 10:37 PM, Evan Mezeske emeze...@gmail.com wrote:
Oops, I accidentally posted this before I finished typing it. I guess
most of what I was trying to convey
The policy is entirely controlled by Google Groups. I think it's time-based.
-S
It can also be overridden per user, once you find your way through the
confusing groups API.
Evan, you should be unmoderated now.
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
You received this
It is done.
And there was much rejoicing.
-S
--
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
Hi all,
Is there any easy-to-use library for generating java code?
I ended up writing simple function that takes strings and characters
and prints them in formatted form (e.g. with tabs and newlines after
braces).
I really like compojure approach to build html page - is there any
similar
And maybe in the wrong thread ? :)))
Whoops, submitted that a bit too soon.
I guess only couple of things to add:
(1) The cost of obtaining the primitive array and returning it to the
cache is likely no worse than operations on an ArrayList, so those
should be very cheap.
(2) The
Disclaimer, I'm only looking at how I would want to write it. You may
need to do something else if you have specific performance
requirements.
clojure.set is probably your friend.
user= (def xrel #{{:id 1, :foo bar} {:id 2, :foo car} {:id 3, :foo dog}})
#'user/xrel
user= (use 'clojure.set)
nil
Hi Alex,
I've done similar things in the past, also by throwing together plain
strings and using `format` as a kind of templating thingy. I don't even
think it's a too bad approach.
With respect to the side-effects: you can omit all of them (glancing at
your code) by giving up the indentation.
I am willing to contribute, and have in the past, but I think that
instead of just contributing some cash and hoping things that we want
will be worked on, I would propose that we structure it some. In
fact, I come up with a few projects that could be of use to the whole
community, or at least a
Take a look at https://github.com/stathissideris/javamatic
--
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
I definitely like the tooltip idea. I like it so much that I've already played
with it a bit, looking at several web pages with instructions for how to do it,
but my knowledge of good ways to do this is zero except for the results of
those Google searches.
Has anyone implemented tooltips on a
Hi,
I think Twitter's Bootstrap toolkit is sg to consider.
http://twitter.github.com/bootstrap/javascript.html#tooltips
also
http://twitter.github.com/bootstrap/javascript.html#popovers
I already used them, they're easy and fun to implement. :)
I think if the content already appers somewhere
On Fri, Mar 23, 2012 at 14:22, Alex Shabanov avshaba...@gmail.com wrote:
Hi all,
Is there any easy-to-use library for generating java code?
I ended up writing simple function that takes strings and characters
and prints them in formatted form (e.g. with tabs and newlines after
braces).
I
It would be straightforward in clojurescript as well. Google provides a
bunch of different tooltips in the closure library:
http://closure-library.googlecode.com/svn/docs/class_goog_ui_Tooltip.html
http://closure-library.googlecode.com/svn/docs/class_goog_ui_AdvancedTooltip.html
On Mar 23, 9:01 am, Giorgio Valoti giorgi...@me.com wrote:
Il giorno 22/mar/2012, alle ore 10:21, Marco Dalla Stella ha scritto:
Hi,
I just want to know if there are any other italian Clojure users in
the ml, maybe for open an Italian Clojure User Group and organize some
meetings...
im italian but now im living in USA...
I will come back in july...
Im from Siena
Il giorno giovedì 22 marzo 2012 04:21:02 UTC-5, Marco Dalla Stella ha
scritto:
Hi,
I just want to know if there are any other italian Clojure users in
the ml, maybe for open an Italian Clojure User Group and
On Thursday, March 22, 2012 11:06:27 PM UTC-3, Moritz Ulrich wrote:
The whole thing works in leiningen because it loads all necessary
dependencies for you.
I highly recommend to use leiningen for all dependency management,
don't copy jars around. A quick look at the readme of Clooj reveals
Thank you for all replies.
The reason that I was using set instead of map was to use the functions
from closure.set. I like them.
But now I agree that map is a better approach.
(select (fn [{:keys [id]}] (not= id 1)) xrel) is O(n). Right?
Can I say that if you need remove an item you should
Hi everyone,
I 've been trying for the past couple of days to formulate the zebra
puzzle in clojure as an exercise to get my head round core.logic...I
can't seem to do it properly and so i was wondering if anyone can
provide a well commented solution so i can study it thorougly. I know
p.s: If someone thinks that the zebra puzzle is too complicated as a first
example please don't hesitate to say so...I recently purchased the
reasoned schemer (hasn't arrived yet) which hopefully explains things at a
good pace.
It's actually pretty simple. Take a look at the Prolog
aaa ok i see...so i'm supposed to pivot around house and NOT around
person as i was trying to...thanks for the link - very much appreciated!
Jim
On 23/03/12 17:43, Daniel Gagnon wrote:
p.s: If someone thinks that the zebra puzzle is too complicated as
a first example please don't
Thanks a bunch!
-Evan
On Friday, March 23, 2012 6:22:12 AM UTC-7, stuart@gmail.com wrote:
The policy is entirely controlled by Google Groups. I think it's
time-based.
-S
It can also be overridden per user, once you find your way through the
confusing groups API.
Evan, you should
Sets are good when you have a collection of things, the precise order isn't
important to you, and you want to avoid duplicates. I used one in some code
recently where I wanted to maintain a collection of people who were co-authors
in a Clojure patch, and the input file I started with could
On Fri, Mar 23, 2012 at 10:58 AM, Andy Fingerhut
andy.finger...@gmail.com wrote:
I definitely like the tooltip idea. I like it so much that I've already
played with it a bit, looking at several web pages with instructions for how
to do it, but my knowledge of good ways to do this is zero
On Mar 23, 5:44 pm, Herwig Hochleitner hhochleit...@gmail.com wrote:
Take a look athttps://github.com/stathissideris/javamatic
hmm, interesting.
I also found quite intriguing library - http://code.google.com/p/cl-dcf/
- a framework for building DSL compilers, though its written in
common
Thanks for the suggestions, folks.
Cedric, have you tried your method before? I'm not sure, but I think it
was the thing that I tried that led me to add (b) to my list of
preference. I like anything that makes the development job easier, but not
if it violates that preference.
Thanks,
Andy
On
On Fri, Mar 23, 2012 at 3:57 PM, Andy Fingerhut
andy.finger...@gmail.com wrote:
Thanks for the suggestions, folks.
Cedric, have you tried your method before? I'm not sure, but I think it was
the thing that I tried that led me to add (b) to my list of preference. I
like anything that makes
To use leiningen in conjunction with clooj:
1. Edit project.clj to reflect your dependencies (using clooj or whatever other
editor).
2. Run lein deps from the command line within the project's directory.
3. Quit/restart clooj, since it builds its classpath on launch.
Works for me at least.
I'm not putting the Declaration of Independence in the tooltips, but the
Clojure doc strings,
with the same text width as they appear in the original, which is nearly 80
characters wide. Those are easily wide enough to go partially out of the
browser window unless the browser takes pains not to
Hi vet,
In clooj + lein, there are three steps to adding a jar to a project.
1. Edit the project.clj file to include the artifact in the project's
dependencies
2. Go to the command line and type lein deps
3. Go back to clooj and choose the menu item REPL Restart
Restarting the REPL loads all
On Friday, March 23, 2012 5:26:16 AM UTC-7, David Nolen wrote:
This needs a design page on Confluence. Anything under discussion should
probably address the new :refer.
David
I'd be happy to consolidate this topic into a wiki page if I had the
privileges needed to create one. Or maybe if
That's the thread. Please send in your CA and you can get access to
Confluence JIRA :)
David
On Fri, Mar 23, 2012 at 5:45 PM, Evan Mezeske emeze...@gmail.com wrote:
On Friday, March 23, 2012 5:26:16 AM UTC-7, David Nolen wrote:
This needs a design page on Confluence. Anything under
I like BernardH's idea of doing it anonymously; if nobody from Core
minds, we could set up an anonymous survey to see how much interest
there is.
cej38, your suggestions are very soundpersonally, I would love to
see curated, distilled APIs for common things a Clojure programmer
needs to do
I can see the need for refer and alias, but why can the compiler not infer from
the use of a fully qualified name that a namespace (or class) that is not
loaded yet, has to be required?
Or did I miss anything?
-FrankS.
--
You received this message because you are subscribed to the Google
I think you would probably have the most meaningful success if you focused
on making things that let people teach themselves Clojurescript. Making the
editor intuitive for beginners would be a major win. Allowing them to
visualize data structures and algorithms that they have written in
On Fri, Mar 23, 2012 at 4:49 PM, Andy Fingerhut
andy.finger...@gmail.com wrote:
I'm not putting the Declaration of Independence in the tooltips, but the
Clojure doc strings, with the same text width as they appear in the original,
which is nearly 80 characters wide.
I'd suggest not using the
On Fri, Mar 23, 2012 at 7:35 PM, nchurch nchubr...@gmail.com wrote:
I like BernardH's idea of doing it anonymously; if nobody from Core
minds, we could set up an anonymous survey to see how much interest
there is.
cej38, your suggestions are very soundpersonally, I would love to
see
#{foo bar baz} is somewhat ugly. It occurs to me that one could modify
the reader to additionally accept
{{foo bar baz}}
without breaking anything. It's not possible for it to be a valid map
literal, because the outer {...} pair has only one object inside it
and a map literal requires an even
I'm a fan of #{foo bar baz}.
Ambrose
On Sat, Mar 24, 2012 at 11:44 AM, Cedric Greevey cgree...@gmail.com wrote:
#{foo bar baz} is somewhat ugly. It occurs to me that one could modify
the reader to additionally accept
{{foo bar baz}}
without breaking anything. It's not possible for it to
Even if #{...} was ugly (which I don't feel one way or the other on),
having two special syntaxes for the same thing is even uglier than having
one ugly set literal notation :)
On Sat, Mar 24, 2012 at 12:19 AM, Ambrose Bonnaire-Sergeant
abonnaireserge...@gmail.com wrote:
I'm a fan of #{foo bar
On Fri, Mar 23, 2012 at 8:09 PM, Cedric Greevey cgree...@gmail.com wrote:
That said, one of the less efficient things about the Clojure
development process is the whole CA thing. A lot of FOSS projects seem
to get by fine without erecting such a barrier to participation.
I can't think of a
On Fri, Mar 23, 2012 at 8:44 PM, Cedric Greevey cgree...@gmail.com wrote:
#{foo bar baz} is somewhat ugly. It occurs to me that one could modify
the reader to additionally accept
{{foo bar baz}}
My concern is that {{1 2 3 4}5} is currently legal - a map with a map
as a key and 5 as the value.
50 matches
Mail list logo