1.10.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
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 are
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:
https://gith
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 w
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 all Clojure developers. I
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)]
> (for [x t] (println "here" x))
>
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 the
list and the argument
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 inside function arg
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 su
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 post to this group, sen
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 post the show notes on ht
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
> "2016-03-31T19:34:27.31300-00:00
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 globally (using :exclusions
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 "http
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.
> Victory!
>
> It seems lik
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
> replace the existin
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
> mailto:clojure@googlegroups.com>> wrot
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 wuold be super cool,
> like:
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
>
>
> ( = '( 1 2 3 4 5) '(
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 players A, B, C, D there would be
On 19 Aug 2015, at 18:08, Hussein B. 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 t
On 1 June 2015 at 00:42, Daniel 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 clojure@googlegroups.com
Note that posts fr
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 libra
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 example
On 28 April 2015 at 05:22, Mikera 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 likely to be unacceptable f
On 5 March 2015 at 14:08, Thomas 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 subscribed to the Googl
On 7 December 2014 at 19:27, Fluid Dynamics 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 address by m
On 15 September 2014 13:44, Kalina Todorova wrote:
> On Mon, Sep 15, 2014 at 2:34 PM, Phillip Lord
> wrote:
>>
>>
>>
>> Jeremy Vuillermet writes:
>>
>> > Could it return a (partial > 2) ?
>>
>>
>> Because > works with n args and not just two.
>>
>> (> 2) => (partial > 2)
>>
>> then why not
>>
>
On 15 September 2014 08:46, Jeremy Vuillermet
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 argument it
always returns true.
On 13 August 2014 13:43, Plínio Balduino 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, send email to cloj
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 f
(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 wrote:
> Wouldn't just calling rest on your collection do what you want?
>
>
> On Wed, Apr 2, 2014 at 1:07 PM,
On 10 March 2014 10:26, Asfand Yar Qazi 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 does
On 11 January 2014 01:14, Alan Forrester
wrote:
> On 11 January 2014 01:03, Alan Forrester
> wrote:
>> On 10 January 2014 21:06, Colin Yates wrote:
>>> Gosh - my public humiliation continues. Here is one that actually works:
>>>
>>>
On 11 January 2014 01:03, Alan Forrester
wrote:
> On 10 January 2014 21:06, Colin Yates wrote:
>> Gosh - my public humiliation continues. Here is one that actually works:
>>
>> (first (reduce (fn [[results seen] item]
>>
On 10 January 2014 21:06, Colin Yates 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) (format-fn item cnt)
> i
On 3 Nov 2013, at 21:39, Angus 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 the number of items
On 28 October 2013 05:23, Jiaqi Liu wrote:
>> 2013/10/28 Jiaqi Liu
>>>
>>> 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 atom if you need t
On 12 Aug 2013, at 08:52, Răzvan Rotaru 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 link:
> https://d
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 2
On 21 June 2013 11:17, Jay C 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 [rdr (reader
42 matches
Mail list logo