1"]
> [org.clojure/core.logic "1.0.0"]
> ]
> :repl-options {:init-ns cljcore.core}
> :java-source-paths
> ["java"]
> :source-paths
> ["src"]
> :test-paths
> ["test”]
> )
Have you installed leiningen?
Alan Forrester
--
You rece
Hello
Strategic Blue is a company that helps organisations buy cloud on terms to suit
their needs and optimise long-term cloud costs. We’re hiring a Clojure
developer in London:
https://strategic-blue.com/careers_pt/developer-2/
Alan Forrester
--
You received this message because you
On 27 Jul 2018, at 06:39, Didier wrote:
> What's the best way to use Lein only as a build tool? If I want to do my own
> dependency resolutions. Or say use tools.deps for dependency resolution, but
> Lein for all other build tasks?
There’s a leiningen plugin for using tools.deps:
or not this is intentional is there a way round it?
Alan Forrester
--
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 y
On 12 Jun 2017, at 20:41, Mark wrote:
> > I don't see how that limits it to dev use cases. Can you explain more why
> > you say that?
>
> I understand (and completely agree with) the assumption of a global namespace
> for spec names. The scope of that namespace is
On 17 May 2017, at 19:14, Kevin Kleinfelter
wrote:
> I'm stumped by the behavior of the following code fragment. Can someone help
> me understand what's happening?
>
> This code:
> (println "Holding:" (:class holding))
> (let [t (:class holding)]
>
On 30 Jan 2017, at 07:34, Sayth Renshaw wrote:
> Hi
>
> If nil is true
>
> clojure-noob.core> (nil? nil)
> true
>
> Then why doesn't nil return from this statement as the first true value?
This expression is a function invocation. The function is the first item in
On 27 Jan 2017, at 07:04, Didier wrote:
> Some languages have pattern matching, and Clojure is said to not have it
> (without a library), but it does have destructuring.
>
> It seems to me that destructuring is the same as pattern matching, except
> that it can only be used
In Rich Hickey's talk "Simple Made Easy" he mentioned that there are
ways to take a system that somebody else wrote that is complex and
simplify it.
Can anyone recommend some resources on how to do this?
Thanks,
Alan Forrester
--
You received this message because you are
What are you asking “Why?” about? You haven’t quoted anything so it’s not clear
what you’re asking about.
Alan
On 4 Jun 2016, at 13:22, Alex Miller wrote:
> Why?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To
On 20 May 2016, at 10:32, Vijay Kiran wrote:
> On Friday, May 20, 2016 at 9:29:29 AM UTC+2, Ashish Negi wrote:
>> One suggestion :
>>
>> Please provide a short description for every podcast episode. This helps
>> immensely.
>
> Hi Ashish,
>
> Thanks for tuning in, we
On 17 May 2016, at 10:47, 'Simon Brooke' via Clojure
wrote:
> I'm having trouble with writing a function
> in idiomatic clojure
> which doesn't blow the stack
> The problem is I have a time series of events e.g.
>
> ({:idhistory 78758272, :timestamp #inst
>
On 13 May 2016, at 11:46, Juan A. Ruz @tangrammer
wrote:
> (sorry previous comment was sent before I wanted :- )
> Hi Alan,
> I think you should keep commons-code 1.9 as far as is the last-version
> required by any dep of your project
> so ...
>
> you could exclude
I have been trying to use the Twitter API library by Adam Wynne:
https://github.com/adamwynne/twitter-api
and it appears to have a dependency problem.
My project.clj file looks like this
(defproject hash-tag-counting-thingy "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url
I am trying to use reagent for a personal project, but I have a problem with
html tags. The keywords corresponding to html tags are not the same as the html
tags with a colon in front of them. For example, the onclick html tag becomes
:on-click in reagent. So I would like to see a list of which
On 13 Apr 2016, at 04:18, 'Lee' via Clojure wrote:
> Thanks again to Alan, Pedro, and Colin for the input on this.
>
> I found the modern-cljs tutorial most helpful, and was able to put the
> compiled Hello World example on a server and then run it from my browser.
>
On 10 Nov 2015, at 15:14, Alex Miller wrote:
> The Clojure community is full of talented writers and valuable experience,
> and together we can create great documentation for the language and the
> ecosystem. With that in mind, we are happy to announce a new initiative to
On 2 Nov 2015, at 13:11, Grahack wrote:
> I'm resurrecting this thread in case there is something new that happened
> concerning complex numbers that was not logged here.
> So was there some progress made?
>
> I also wanted to add that mixing rationals and complex
o make that swappable, just as the underlying matrix
> implantations are presently (in core.matrix.complex).
>
The complex number library basically casts non-doubles to doubles.
Alan
> On Mon, Nov 2, 2015, 7:03 AM 'Alan Forrester' via Clojure
> <clojure@googlegroups.com <mailto:clojure@goo
On 8 Oct 2015, at 09:15, r/ Wobben wrote:
> I have now this :
>
> (ns fourclojure.core
> (:gen-class))
>
>
> (defn checker [x]
> ( = x (if (string? x)
> (clojure.string/reverse x)
> (into (empty x) (reverse x)
>
>
> (checker '(1 2 3 4 5)) true
>
>
>
On 5 Oct 2015, at 11:45, andrea crotti wrote:
> Hi everyone,
>
> I was trying for fun to solve the following problem:
>
> given a list of football players with some defined skills, find out which
> team selection would be balanced.
>
> For example given just 4
On 19 Aug 2015, at 18:08, Hussein B. hubaghd...@gmail.com wrote:
Here is more concrete example
(def s [{n {id a} d 2 children [{n {id c} d 4 children
nil}]} {n {id b} d 3 children nil}])
I want to find the map that has value c for id. If found, I need to
return the map {n {id c} d 4
On 1 June 2015 at 00:42, Daniel doubleagen...@gmail.com wrote:
Criterium should probably be just a Dev dependency.
Okay. Fixed.
Thanks,
Alan
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
https://clojars.org/complex
https://github.com/alanforr/complex
Complex is a Clojure library for doing complex number calculations
that wraps the Java commons-math3 Complex library.
complex
A Clojure library for doing calculations with complex numbers. Wraps
the Java commons-math3 Complex
Hello
I'm currently trying to wrap org.apache.commons.math3.complex
http://commons.apache.org/proper/commons-math/apidocs/org/apache/commons/math3/complex/Complex.html
to make a complex number library and I have a problem. Many of the
methods won't work with all Clojure number types. For
On 28 April 2015 at 05:22, Mikera mike.r.anderson...@gmail.com wrote:
Complex numbers are tricky because:
- They need to be fast in order to be useful for numerical computing. The
obvious implementations that you might create with boxed values,
vectors/maps, multimethods and protocols are
On 5 March 2015 at 14:08, Thomas th.vanderv...@gmail.com wrote:
There are also a few of us in the Southampton/Winchester area
Get in touch if you are interested.
I am in Southampton and would be interested in meeting some Clojurians.
Alan
--
You received this message because you are
On 7 December 2014 at 19:27, Fluid Dynamics a2093...@trbvm.com wrote:
On Sunday, December 7, 2014 11:12:37 AM UTC-5, Bozhidar Batsov wrote:
I think you should post this to cloju...@googlegroups.com
To where? Your post displayed like that, and I couldn't get a usable tooltip
expanding the
On 15 September 2014 08:46, Jeremy Vuillermet
jeremy.vuiller...@gmail.com wrote:
Could it return a (partial 2) ?
http://clojuredocs.org/clojure_core/clojure.core/%3E
If you look at the source code near the bottom of the page, you will
find that it specifies that when you give a single
On 15 September 2014 13:44, Kalina Todorova kalinalyudmil...@gmail.com wrote:
On Mon, Sep 15, 2014 at 2:34 PM, Phillip Lord phillip.l...@newcastle.ac.uk
wrote:
Jeremy Vuillermet jeremy.vuiller...@gmail.com writes:
Could it return a (partial 2) ?
Because works with n args and not
On 13 August 2014 13:43, Plínio Balduino pbaldu...@gmail.com wrote:
Hi there
Is there any discussion list about Instaparse?
http://groups.google.com/forum/#!forum/instaparse
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group,
I would like to try the JTransforms Java FFT library from Clojure:
https://sites.google.com/site/piotrwendykier/software/jtransforms
I created a new folder went to that folder in a console and typed
lein try net.sourceforge.jtransforms/jtransforms 2.4.0
lein try retrieved some jars and poms
(remove pred coll)
removes all of the items in coll satisfying pred. rest just removes
the first element of coll, not the first satisfying pred.
Alan
On 2 April 2014 21:36, Chris Lappe chris.la...@gmail.com wrote:
Wouldn't just calling rest on your collection do what you want?
On Wed, Apr
On 10 March 2014 10:26, Asfand Yar Qazi ayq...@gmail.com wrote:
Hi,
On Sunday, 9 March 2014 14:58:47 UTC, Atamert Ölçgen wrote:
Hello,
(take 1 fib-seq) = (1)
Which can also be seen as[*] (map + (0) (1))
(map + '(0) '(1)) = (1)
Makes sense?
I'm afraid it still doesn't make sense;
On 10 January 2014 21:06, Colin Yates colin.ya...@gmail.com wrote:
Gosh - my public humiliation continues. Here is one that actually works:
(first (reduce (fn [[results seen] item]
(let [cnt (get seen item 0)]
[(conj results (if ( cnt 0)
On 11 January 2014 01:03, Alan Forrester
alanmichaelforres...@googlemail.com wrote:
On 10 January 2014 21:06, Colin Yates colin.ya...@gmail.com wrote:
Gosh - my public humiliation continues. Here is one that actually works:
(first (reduce (fn [[results seen] item]
(let
On 11 January 2014 01:14, Alan Forrester
alanmichaelforres...@googlemail.com wrote:
On 11 January 2014 01:03, Alan Forrester
alanmichaelforres...@googlemail.com wrote:
On 10 January 2014 21:06, Colin Yates colin.ya...@gmail.com wrote:
Gosh - my public humiliation continues. Here is one
On 3 Nov 2013, at 21:39, Angus anguscom...@gmail.com wrote:
(count % '(1 2 3))
I am getting error: clojure.lang.ArityException: Wrong number of args (2)
passed to: core$count
http://clojuredocs.org/clojure_core/clojure.core/count
Count only takes one argument, a collection, and returns
On 28 October 2013 05:23, Jiaqi Liu liujiaq...@gmail.com wrote:
2013/10/28 Jiaqi Liu liujiaq...@gmail.com
i really don't get it.
Any suggestion??
Clojure data structures are immutable. clojure.core/assoc
produces a new data structure instead of changing the one you have.
You can use an
On 12 Aug 2013, at 08:52, Răzvan Rotaru razvan.rot...@gmail.com wrote:
Hi,
I'm curious about the general opinion on the Clojure syntax, whether people
actually like it or just use it because it provides macros. So I would like
to ask you to participate in a poll. Thank You.
Here's the
The solution
(flatten (interleave (partition 1 2 xy) (partition 1 2 (rest xy)) z))
works provided that none of the elements of xy or z are seqs.
For example if xy = [[1 3] [2 4] [3 7] [4 7]] and z= [[5] [6]] this
solution produces
(1 3 2 4 5 3 7 4 7 6).
The other proposal (interleave (take-nth
On 21 June 2013 11:17, Jay C ubuntu...@gmail.com wrote:
Hi, I'm fairly new to Clojure and need help with a problem. The following
function always returns nil, whereas it should return the value of line
(which is not nil - I've tested).
(defn find-line-in-output [regex]
(with-open
42 matches
Mail list logo