Re: Could not locate

2021-01-05 Thread 'Alan Forrester' via Clojure
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

[JOB] Strategic Blue Clojure job in London

2020-12-03 Thread 'Alan Forrester' via Clojure
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

Re: Best way to use Lein only as a build tool?

2018-07-27 Thread 'Alan Forrester' via Clojure
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:

transients problem

2018-02-24 Thread 'Alan Forrester' via Clojure
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

Re: Spec without global registry?

2017-06-12 Thread 'Alan Forrester' via Clojure
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

Re: Let and For Doesn't Execute - Where Is My Misunderstanding?

2017-05-17 Thread 'Alan Forrester' via Clojure
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)] >

Re: if nil is true

2017-01-29 Thread 'Alan Forrester' via Clojure
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

Re: Pattern matching Vs destructuring?

2017-01-26 Thread 'Alan Forrester' via Clojure
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

complex made simple?

2016-10-14 Thread 'Alan Forrester' via Clojure
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

Re: [ANN] Clojure 1.9.0-alpha4

2016-06-04 Thread 'Alan Forrester' via Clojure
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

Re: [ANN] New Clojure Podcast: defn

2016-05-20 Thread 'Alan Forrester' via Clojure
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

Re: Removing duplicates from a series

2016-05-17 Thread 'Alan Forrester' via Clojure
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 >

Re: dependency problem

2016-05-13 Thread 'Alan Forrester' via Clojure
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

dependency problem

2016-05-13 Thread 'Alan Forrester' via Clojure
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

Reagent html tags

2016-04-17 Thread 'Alan Forrester' via Clojure
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

Re: more minimal clojurescript intro/app

2016-04-13 Thread 'Alan Forrester' via Clojure
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. >

Re: [ANN] Let's make clojure.org better!

2015-11-10 Thread 'Alan Forrester' via Clojure
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

Re: complex numbers in clojure

2015-11-02 Thread 'Alan Forrester' via Clojure
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

Re: complex numbers in clojure

2015-11-02 Thread 'Alan Forrester' via Clojure
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

Re: palingdrome problem (4 clojure)

2015-10-08 Thread 'Alan Forrester' via Clojure
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 > > >

Re: Generate all possible teams

2015-10-05 Thread 'Alan Forrester' via Clojure
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

Re: How can find something inside heavily nested data structure ?

2015-08-19 Thread 'Alan Forrester' via Clojure
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

Re: complex number library

2015-06-01 Thread Alan Forrester
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

complex number library

2015-05-31 Thread Alan Forrester
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

Wrapping org.apache.commons.math3.complex

2015-05-02 Thread Alan Forrester
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

Re: complex numbers in clojure

2015-04-30 Thread Alan Forrester
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

Re: Any Lispers in South Devon, UK?

2015-03-05 Thread Alan Forrester
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

Re: For review: Clojure Namespace Isolation

2014-12-07 Thread Alan Forrester
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

Re: why ( 2) returns true

2014-09-15 Thread Alan Forrester
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

Re: why ( 2) returns true

2014-09-15 Thread Alan Forrester
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

Re: Instaparse channel

2014-08-13 Thread Alan Forrester
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,

require and jtransforms

2014-04-30 Thread Alan Forrester
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

Re: remove first?

2014-04-02 Thread Alan Forrester
(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

Re: Need help understanding a lazy sequence function

2014-03-10 Thread Alan Forrester
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;

Re: How can I improve this?

2014-01-10 Thread Alan Forrester
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)

Re: How can I improve this?

2014-01-10 Thread Alan Forrester
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

Re: How can I improve this?

2014-01-10 Thread Alan Forrester
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

Re: Why is this count example not working: (count % '(1 2 3))

2013-11-03 Thread Alan Forrester
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

Re: How to change map in doseq ?

2013-10-28 Thread Alan Forrester
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

Re: Do you like the Clojure syntax?

2013-08-12 Thread Alan Forrester
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

Re: Interleaving

2013-06-27 Thread Alan Forrester
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

Re: Function returns nil

2013-06-21 Thread Alan Forrester
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