Re: Excellent intro to core.logic

2011-07-19 Thread Tassilo Horn
David Nolen writes: Hi David, > Ambrose has submitted a patch which I need to go over. Even so, I > don't think docstrings are going to help you that much. It doesn't teach you logic programming, but at least it could explain the arguments. Something like: (defmacro exist [[& x-rest] & g-rest

Re: use of subseq on a vector which I know is already sorted

2011-07-19 Thread Sunil S Nandihalli
thanks Miekel, Bennyand Ken for your responses.. Sunil. On Mon, Jul 18, 2011 at 7:15 PM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hi everybody, > > I have a situation where I know that the sequence I have at hand is sorted > but does not implement the Sorted interface. How can I

Re: :require farms in Clojure?

2011-07-19 Thread Meikel Brandmeyer
Hi, Am Mittwoch, 20. Juli 2011 06:38:27 UTC+2 schrieb Chas Emerick: > > Try: > > (ns myfuns >(:require >(foo.baz [a :as a] > [b :as b] > [c :as c])) > I think he wants more something like this: (ns require.farm) (def xxx '[[foo.bar [a :as a] [b :as b]]

Re: Error running Clojure 1.3 in Eclipse

2011-07-19 Thread Sean Corfield
On Tue, Jul 19, 2011 at 4:57 PM, Chas Emerick wrote: > Depends on what you're using out of contrib 1.2.0.  There are a number of > namespaces that do not run afoul of the changes in Clojure 1.3.0. Good to know some parts do work. So far every 3rd party project I've tried to use with Clojure 1.3.

Re: The Last Programming Language

2011-07-19 Thread Sean Corfield
On Tue, Jul 19, 2011 at 5:14 PM, Adam Richardson wrote: > the value placed on the last language being > homoiconic (without much justification) Yeah, that was definitely a weak point of his talk. I thought there was a lot of interesting stuff in there tho' and it was entertaining (which was mostl

Re: :require farms in Clojure?

2011-07-19 Thread Chas Emerick
Stu, Try: (ns myfuns (:require (foo.baz [a :as a] [b :as b] [c :as c])) Cheers, - Chas On Jul 20, 2011, at 12:36 AM, stu wrote: > Hi, > > In larger Clojure projects with nested namespaces I've found there are > less namespace pollution issues if I av

:require farms in Clojure?

2011-07-19 Thread stu
Hi, In larger Clojure projects with nested namespaces I've found there are less namespace pollution issues if I avoid (ns... :use...) forms in preference to (ns... :require...) forms. This approach sometimes leads to namespace constructs like: (ns myfuns (:require [foo.baz.a :as a]

Re: Increasing indent level in pprint

2011-07-19 Thread Tom Faulhaber
Hmmm, looking back at the code, I see that I mis-remembered the fact that lists and vectors were different. They both (along with maps) will break rather than fill. Arrays and sets both fill rather than break. I'm not sure how much logic there is around this. It just fit my intuition about how the

Re: The Last Programming Language

2011-07-19 Thread daly
On Tue, 2011-07-19 at 22:27 -0400, Adam Richardson wrote: > On Tue, Jul 19, 2011 at 9:04 PM, daly > wrote: > > On Tue, 2011-07-19 at 20:14 -0400, Adam Richardson wrote: > > On Tue, Jul 19, 2011 at 6:23 PM, Brian Hurt > wrote: > > What's this awk-a-

Re: Exception testing with clojure.test

2011-07-19 Thread Jonathan Cardoso
Thank's a lot. That's exactly what I was looking for and didn't realize there was a thrown? function in the API =S 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

Re: The Last Programming Language

2011-07-19 Thread Adam Richardson
On Tue, Jul 19, 2011 at 9:04 PM, daly wrote: > On Tue, 2011-07-19 at 20:14 -0400, Adam Richardson wrote: > > On Tue, Jul 19, 2011 at 6:23 PM, Brian Hurt wrote: > > What's this awk-a-mel he speaks of? Ocaml, pronounced > > oh-camel, I ... > > > > > > I will confess that as I list

Re: Exception testing with clojure.test

2011-07-19 Thread Brian Marick
On Jul 19, 2011, at 3:48 PM, Jonathan Cardoso wrote: > Hi guys, > > I want to test some code that throws exceptions, but I don't want exceptions > to be thrown in the console. jcrit.server=> (use 'midje.sweet) jcrit.server=> (fact (f) => (throws NullPointerException

Re: leiningen 1.6.1 not compatible with lein-nailgun 1.1.0

2011-07-19 Thread Wei Hsu
Thanks for the tips, Phil! This may be somewhat of a newbie question, but what's the best way to modify lein-nailgun and include that local fork in my project using leiningen? On Jul 17, 9:49 pm, Phil Hagelberg wrote: > On Sun, Jul 17, 2011 at 8:37 AM, Phil Hagelberg wrote: > > * It starts a bac

Re: The Last Programming Language

2011-07-19 Thread daly
On Tue, 2011-07-19 at 20:14 -0400, Adam Richardson wrote: > On Tue, Jul 19, 2011 at 6:23 PM, Brian Hurt wrote: > What's this awk-a-mel he speaks of? Ocaml, pronounced > oh-camel, I > know very well, but I've never heard of this awk-a-mel. :-) > > Seriousl

Re: The Last Programming Language

2011-07-19 Thread Adam Richardson
On Tue, Jul 19, 2011 at 6:23 PM, Brian Hurt wrote: > What's this awk-a-mel he speaks of? Ocaml, pronounced oh-camel, I > know very well, but I've never heard of this awk-a-mel. :-) > > Seriously, his pronunciation of "ocaml" highlights, I think, the core > problem of his talk. There has been s

Re: Error running Clojure 1.3 in Eclipse

2011-07-19 Thread Chas Emerick
On Jul 19, 2011, at 4:24 PM, Sean Corfield wrote: > On Tue, Jul 19, 2011 at 10:08 AM, ron peterson > wrote: >> In the project.clj I made a mistake, it should be >> >> (defproject Test "1.0.0-SNAPSHOT" >> :dependencies [[org.clojure/clojure "1.3.0-beta1"] >> [org.clojure/clojure

Re: The Last Programming Language

2011-07-19 Thread daly
It is an object extension to the AWK programming language :-) On Tue, 2011-07-19 at 19:31 -0400, Adam Richardson wrote: > On Tue, Jul 19, 2011 at 6:23 PM, Brian Hurt wrote: > What's this awk-a-mel he speaks of? Ocaml, pronounced > oh-camel, I > know very well, but I've ne

Re: The Last Programming Language

2011-07-19 Thread Adam Richardson
On Tue, Jul 19, 2011 at 6:23 PM, Brian Hurt wrote: > What's this awk-a-mel he speaks of? Ocaml, pronounced oh-camel, I > know very well, but I've never heard of this awk-a-mel. :-) > > Seriously, his pronunciation of "ocaml" highlights, I think, the core > problem of his talk. There has been s

Re: The Last Programming Language

2011-07-19 Thread Alan Malloy
On Jul 19, 3:23 pm, Brian Hurt wrote: > What's this awk-a-mel he speaks of?  Ocaml, pronounced oh-camel, I > know very well, but I've never heard of this awk-a-mel.  :-) > > Seriously, his pronunciation of "ocaml" highlights, I think, the core > problem of his talk.  There has been significant dev

Re: The Last Programming Language

2011-07-19 Thread Brian Hurt
What's this awk-a-mel he speaks of? Ocaml, pronounced oh-camel, I know very well, but I've never heard of this awk-a-mel. :-) Seriously, his pronunciation of "ocaml" highlights, I think, the core problem of his talk. There has been significant development in languages, just not in the popular l

Re: The Last Programming Language

2011-07-19 Thread Alan Malloy
On Jul 19, 1:23 pm, Sean Corfield wrote: > On Tue, Jul 19, 2011 at 4:50 AM, Ken Wesson wrote: > > What video? The only video I see linked from there is over an hour > > long. Obviously you can't mean that one, since no one around here has > > that kind of spare time at this hour on a Tuesday. :)

Re: Exception testing with clojure.test

2011-07-19 Thread Sam Ritchie
Yup, this should do the trick: (defn only-odds [x] {:pre [(odd? x)]} x) (deftest only-odds-test (is (thrown? AssertionError (only-odds 2))) (is (= 1 (only-odds 1 On Tue, Jul 19, 2011 at 4:48 PM, Jonathan Cardoso wrote: > Hi guys, > > I want to test some code that throws except

Exception testing with clojure.test

2011-07-19 Thread Jonathan Cardoso
Hi guys, I want to test some code that throws exceptions, but I don't want exceptions to be thrown in the console. Is there a way to do that with *is* function? What is the best way to test my code with try-catch blocks? -- You received this message because you are subscribed to the Google Gr

Re: Error running Clojure 1.3 in Eclipse

2011-07-19 Thread Sean Corfield
On Tue, Jul 19, 2011 at 10:08 AM, ron peterson wrote: > In the project.clj I made a mistake, it should be > > (defproject Test "1.0.0-SNAPSHOT" >  :dependencies [[org.clojure/clojure "1.3.0-beta1"] >                 [org.clojure/clojure-contrib "1.2.0"] I'm pretty sure you can't use contrib 1.2.0

Re: The Last Programming Language

2011-07-19 Thread Sean Corfield
On Tue, Jul 19, 2011 at 4:50 AM, Ken Wesson wrote: > What video? The only video I see linked from there is over an hour > long. Obviously you can't mean that one, since no one around here has > that kind of spare time at this hour on a Tuesday. :) Yes, an hour. It's an excellent talk. There's a h

Re: Increasing indent level in pprint

2011-07-19 Thread Sean Corfield
On Tue, Jul 19, 2011 at 12:03 AM, Tom Faulhaber wrote: > Sean's remark is right for writing code, but not really relevant for > pretty printed data structures. The pretty printer will either avoid > "(foo a" followed by a line break or fill that line full. (By default, > for lists it breaks the li

[ANN] clojure.java.jdbc 0.0.5 available

2011-07-19 Thread Sean Corfield
Changes in 0.0.5: * Add prepare-statement function to ease creation of PreparedStatement with common options: - see docstring for details * with-query-results now allows the SQL/params vector to be: - a PreparedStatement object, followed by any parameters the SQL needs - a SQL query string,

Re: Excellent intro to core.logic

2011-07-19 Thread David Nolen
On Tue, Jul 19, 2011 at 3:31 PM, Tassilo Horn wrote: > David Nolen writes: > > Hi David, > > > I highly recommend checking this out if you're curious about > > core.logic, https://github.com/frenchy64/Logic-Starter/wiki > > I've just read it, and I think I've grasped most of it although my last >

Result of translation of fnparse library

2011-07-19 Thread vdim
Hi, all. I try to use fnparse library for creating translator which is built on parser-combinators and I have question: what is the correct approach to keep intermediate result of translation? Can I use for this purpose state object? For example, see code [1] for parsing simple arithmetical expres

Re: Excellent intro to core.logic

2011-07-19 Thread Tassilo Horn
David Nolen writes: Hi David, > I highly recommend checking this out if you're curious about > core.logic, https://github.com/frenchy64/Logic-Starter/wiki I've just read it, and I think I've grasped most of it although my last prolog encounter is quite some time back. But how am I supposed to

Re: Clojure Books

2011-07-19 Thread Abbas
Clojure in Action seems to be a great start if you have some experience with Java. On Jul 18, 10:59 am, Teena Mathew wrote: > Hey! > > Which are the recommended books for Clojure newbie? > > Thanks! > Teena -- You received this message because you are subscribed to the Google Groups "Clojure" g

Aw: Re: Clojure Books

2011-07-19 Thread finbeu
- Practical Clojure (APress) is an excellent reference book. I use it all the time + the clojure cheat sheet. - Programming Clojure is good to start with, but I really didn't like all the Lancet stuff that was included as example. - Joy of clojure: Great. But not easy (was my third book). -F

Re: clooj, a lightweight IDE for clojure

2011-07-19 Thread Lars Nilsson
On Mon, Jul 18, 2011 at 5:14 PM, abp wrote: > Why is it necessary to press TAB at all? Couldn't auto-indent be the > default for a line and only manually reindented lines opt-out until > one opts in again using TAB or something? If I add an expression around existing code, I tend to use TAB if sm

Re: Clojure Books

2011-07-19 Thread octopusgrabbus
On Jul 19, 1:06 am, Sean Corfield wrote: > On Mon, Jul 18, 2011 at 8:01 PM, Felix Filozov wrote: > > Clojure in Action - http://www.manning.com/rathore/ And there is also an upcoming web course based on this book. http://codelesson.com/courses/view/introduction-to-clojure > > Targeting Clojure

Re: Clojure Books

2011-07-19 Thread Jeremy Heiler
On Tue, Jul 19, 2011 at 9:19 AM, Foge wrote: > I'm currently reading Joy of Clojure and I definitely like it. > +1 for the Joy of Clojure. I am really enjoying reading it. It's a book that assumes you know what you're doing, which is very much welcomed. -- You received this message because you

Result of translation of fnparse library

2011-07-19 Thread Vyacheslav Dimitrov
Hi, all. I try to use fnparse library for creating translator which is built on parser-combinators and I have question: what is the correct approach to keep intermediate result of translation? Can I use for this purpose state object? For example, see code [1] for parsing simple arithmetical expres

Re: (count-all str1 str2)

2011-07-19 Thread Tuba Lambanog
That works well. Thank you very much! Tuba On Jul 19, 1:47 am, Meikel Brandmeyer wrote: > Hi, > > how about this: (count (filter (set "abc") "abracadabra"))? > > Sincerely > Meikel -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this grou

Re: Error running Clojure 1.3 in Eclipse

2011-07-19 Thread ron peterson
In the project.clj I made a mistake, it should be (defproject Test "1.0.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.3.0-beta1"] [org.clojure/clojure-contrib "1.2.0"] :dev-dependencies [[lein-eclipse "1.0.0"]] ) I've tried with the standalone contrib and any other var

Re: clooj, a lightweight IDE for clojure

2011-07-19 Thread Arthur Edelstein
Hi Dave, > Cool project, especially if it manages to *stay* lightweight :) Thanks -- I hope it will! :) > * You might want to take a look at JSyntaxPane > (https://code.google.com/p/jsyntaxpane/) for the editor. In theory > adding Clojure syntax highlighting should be straightforward and they >

Re: clooj, a lightweight IDE for clojure

2011-07-19 Thread Arthur Edelstein
> FWIW I just double-clicked on the clooj jar and it launched like any other > application -- I didn't have to know that it was a jar or even what a jar is. > Assuming that this also works on other OSes (I'm using Mac OS X) then I think > this is already beginner friendly. I *think* it also incl

Re: Clojure Books

2011-07-19 Thread Vincent
The Blackstag Blog Post # 5 -> Guide to Programming in Clojure for Beginners -- 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 n

Re: Clojure Books

2011-07-19 Thread daly
Depending on what you want to know about lisp I would recommend: Learning lisp: Practical Common Lisp This is an excellent text for people who are Java programmers. Really learning lisp: Let Over Lambda This will give you ways to think about Lambda as the fundamental mechanism. Let is ju

Re: The Last Programming Language

2011-07-19 Thread gaz jones
this made me lol :D a big will smith fan??? not that i know you at all other than reading your posts here, but i really didnt see that coming... On Tue, Jul 19, 2011 at 9:11 AM, Ken Wesson wrote: > An hour of Will Smith blasting aliens "flies by". An hour of a talking > head is better presented a

Re: Clojure Books

2011-07-19 Thread Jeff Heon
There is also this nice online introduction for absolute beginners to Clojure and Lisp: Guide to Programming in Clojure for Beginners http://blackstag.com/blog.posting?id=5 -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send e

Re: Clojure Books

2011-07-19 Thread CuppoJava
Let Over Lambda is more a collection of advanced and narrow tricks that a experienced Lisper would find interesting (and maybe useful). It assumes you know the good practices already, and then proceeds to break them for awe and effect. I would not suggest it to a newcomer. -Patrick On Jul 19, 9:

Re: Clojure Books

2011-07-19 Thread Foge
I'm currently reading Joy of Clojure and I definitely like it. What do folks think about Let Over Lambda by Doug Hoyte? I realize that it focuses on Lisp, but will it have any useful information for Clojure programmers? Thanks, Kevin -- You received this message because you are subscribed to th

Re: Namespace Docstrings?

2011-07-19 Thread OGINO Masanori
I search on JIRA, but as far as I know there is no issue discussed in this thread. Is it an issue that (resolve 'clojure.core) throws an exception? Thanks. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are subscribed to the Google Gr

Re: The Last Programming Language

2011-07-19 Thread Colin Yates
Quite - you don't get the "ants in your pants" vibe from plain text :) On 19 July 2011 15:18, Ben Smith-Mannschott wrote: > On Tue, Jul 19, 2011 at 16:11, Ken Wesson wrote: > > On Tue, Jul 19, 2011 at 10:05 AM, Colin Yates > wrote: > >> I find his videos very easy to watch - I think it was aro

Re: The Last Programming Language

2011-07-19 Thread Ben Smith-Mannschott
On Tue, Jul 19, 2011 at 16:11, Ken Wesson wrote: > On Tue, Jul 19, 2011 at 10:05 AM, Colin Yates wrote: >> I find his videos very easy to watch - I think it was around a hour, but the >> time flies by. > > An hour of Will Smith blasting aliens "flies by". An hour of a talking > head is better pre

Re: The Last Programming Language

2011-07-19 Thread Ken Wesson
On Tue, Jul 19, 2011 at 10:05 AM, Colin Yates wrote: > I find his videos very easy to watch - I think it was around a hour, but the > time flies by. An hour of Will Smith blasting aliens "flies by". An hour of a talking head is better presented as text. An hour of talking head + slides is better

Re: The Last Programming Language

2011-07-19 Thread Colin Yates
I find his videos very easy to watch - I think it was around a hour, but the time flies by. On 19 July 2011 14:16, Ken Wesson wrote: > On Tue, Jul 19, 2011 at 6:00 AM, Adam Richardson > wrote: > > Watch the video and you'll see the comment Tim is referencing. > > Are you aware of the length of

Re: Excellent intro to core.logic

2011-07-19 Thread David Nolen
On Tue, Jul 19, 2011 at 2:27 AM, Meikel Brandmeyer wrote: > Hi Ambrose, > > I haven't been exposed to logic programming besides the examples David > posted to the list. I found your tutorial very easy to follow and to read. I > have two minor nit-picks. > > >1. I understand, that these o, e

Re: The Last Programming Language

2011-07-19 Thread Ken Wesson
On Tue, Jul 19, 2011 at 6:00 AM, Adam Richardson wrote: > Watch the video and you'll see the comment Tim is referencing. Are you aware of the length of that video? -- Protege: What is this seething mass of parentheses?! Master: Your father's Lisp REPL. This is the language of a true hacker. Not

Re: following Rich's talk at NYC Clojure this Wednesday

2011-07-19 Thread Stuart Halloway
The website claims that the talk starts at 6:45 pm EDT, but I suspect that the technical content actually starts at 7:00. Stu > awesome!! looking forward to the talk.. like everybody else, I think it will > be great to have the time and time-zone info posted.. > > Sunil. > > On Mon, Jul 18,

Re: clooj, a lightweight IDE for clojure

2011-07-19 Thread Dave Ray
Cool project, especially if it manages to *stay* lightweight :) It is indeed difficult to build a console with Swing's text components. Actually, I think it's difficult with the out-of-the-box text components in just about any toolkit. They're not designed for it and there are a ton of edge cases

Re: The Last Programming Language

2011-07-19 Thread Adam Richardson
On Tue, Jul 19, 2011 at 4:52 AM, Ken Wesson wrote: > On Mon, Jul 18, 2011 at 1:36 PM, TimDaly wrote: > > Robert Martin argues that Clojure could be the seed of the last > > programming language. > > > > http://skillsmatter.com/podcast/agile-testing/bobs-last-language > > I don't see how that cla

Re: The Last Programming Language

2011-07-19 Thread craig worrall
Maybe. Or maybe Martin's talk should be entitled "The Last Programming Language To Get Any Mind-Share". On Jul 19, 3:42 am, Steven Tomcavage wrote: > I double we'll ever see The Last Programming Language, because we're > all hackers and we all have a notion that things could be done better > if

Re: The Last Programming Language

2011-07-19 Thread daly
tl;dw & spoiler alert: The trailing conclusion of the video is that Clojure could be the seed of the last programming language. The video reprises Gabriel's paper of the same title. Bob Martin reminds me of James Martin from the 70s, for those of us old enough to remember him. I wonder if they a

Re: The Last Programming Language

2011-07-19 Thread Ken Wesson
On Tue, Jul 19, 2011 at 6:54 AM, daly wrote: > Watch the video. What video? The only video I see linked from there is over an hour long. Obviously you can't mean that one, since no one around here has that kind of spare time at this hour on a Tuesday. :) -- Protege: What is this seething mass o

Re: clooj, a lightweight IDE for clojure

2011-07-19 Thread Alessio Stalla
On 18 Lug, 18:40, Arthur Edelstein wrote: > Hi Tamreen, > > On Jul 18, 5:38 am, Tamreen Khan wrote: > > > It's a little confusing to see what's normally the text for the prompt, > > "user=>", be in the window that shows the result. Why can't both the prompt > > and the results be shown in the sam

Re: The Last Programming Language

2011-07-19 Thread daly
Watch the video. On Tue, 2011-07-19 at 04:52 -0400, Ken Wesson wrote: > On Mon, Jul 18, 2011 at 1:36 PM, TimDaly wrote: > > Robert Martin argues that Clojure could be the seed of the last > > programming language. > > > > http://skillsmatter.com/podcast/agile-testing/bobs-last-language > > I don

Re: clooj, a lightweight IDE for clojure

2011-07-19 Thread Vincent
nice name ! thanks again for new ide -- 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 unsubscri

Re: Clojure Books

2011-07-19 Thread faenvie
start with: http://java.ociweb.com/mark/clojure/article.html (free) then proceed with: practical clojure http://www.apress.com/9781430272311 -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.c

Re: The Last Programming Language

2011-07-19 Thread Ken Wesson
On Mon, Jul 18, 2011 at 1:36 PM, TimDaly wrote: > Robert Martin argues that Clojure could be the seed of the last > programming language. > > http://skillsmatter.com/podcast/agile-testing/bobs-last-language I don't see how that claim can be drawn from the textual content on that page. He mentions

Re: Clojure Books

2011-07-19 Thread Teena Mathew
Thanks guys! On Tue, Jul 19, 2011 at 11:57 AM, Sergey Didenko wrote: > Also check this great online introduction (targeting 1.0): > http://java.ociweb.com/mark/clojure/article.html > > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post

Re: clooj, a lightweight IDE for clojure

2011-07-19 Thread Lee Spector
On Jul 19, 2011, at 3:54 AM, Clojure Neophyte wrote: > > Again, for Clojure to have wider adoption it should have a beginners' IDE. It > shouldn't be distributed just as jar files. FWIW I just double-clicked on the clooj jar and it launched like any other application -- I didn't have to know t

Re: clooj, a lightweight IDE for clojure

2011-07-19 Thread Clojure Neophyte
> > - I wish that Swing was prettier on the eye. I love nice GUIs. > > Me too. I think in the long run the coolest thing will be an in- > browser clojure IDE for clojure-in-javascript, especially when multi- > threaded javascript becomes available in web browsers. > > Maybe you should drop Swing an

Re: (count-all str1 str2)

2011-07-19 Thread Meikel Brandmeyer
Hi, how about this: (count (filter (set "abc") "abracadabra"))? Sincerely Meikel -- 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

(count-all str1 str2)

2011-07-19 Thread Tuba Lambanog
Thinking of operations on collections to replace iteration is productive, but alas, I'm new to it. I'm looking for a way to count the number of occurrences of each and every character in str1 that occurs in str2, so that (count-all "abc" "abracadabra") will give 8 which is the count of characte

Re: Excellent intro to core.logic

2011-07-19 Thread Meikel Brandmeyer
Hi, Am Dienstag, 19. Juli 2011 08:42:47 UTC+2 schrieb Ambrose Bonnaire-Sergeant: > > Is this easier on the eyes? > > https://gist.github.com/1091495 > Ah! Much better! :D Meikel -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group

Re: clooj, a lightweight IDE for clojure

2011-07-19 Thread Lee Spector
On Jul 18, 2011, at 11:06 PM, Ken Wesson wrote: > Or, the traditional thing: full control, but tab or something will > reindent the current line, or all lines intersecting the selection if > any, to structurally-correct positions based on all of the code above, > if tab is hit outside a string lit

Re: Increasing indent level in pprint

2011-07-19 Thread Tom Faulhaber
Sean's remark is right for writing code, but not really relevant for pretty printed data structures. The pretty printer will either avoid "(foo a" followed by a line break or fill that line full. (By default, for lists it breaks the lines and for vectors it fills them.) While there's no way to jus