Question regarding core.logic

2017-09-04 Thread Laverne Schrock
When I run (run* [q] (fresh [x] (== [x] ['z]) (== q x))), I get (z), which makes sense. When I run (run* [q] (fresh [x] (== q x))), I get (_0), which makes sense since I've placed no restriction on x. However, when I run (run* [q] (fresh [x] (== ['x] ['z]) (== q x))), I get (), which doesn't m

transducers and eduction

2017-09-04 Thread Peter Hull
I am trying to understand transducers and am reading through https://clojure.org/reference/transducers I think I am missing something, please can someone help? I read the part about the 'shape' of a transducer-creating-function ( https://clojure.org/reference/transducers#_creating_transducers) a

Re: transducers and eduction

2017-09-04 Thread Alex Miller
On Monday, September 4, 2017 at 3:54:14 PM UTC-5, Peter Hull wrote: > > I am trying to understand transducers and am reading through > https://clojure.org/reference/transducers I think I am missing something, > please can someone help? > > I read the part about the 'shape' of a transducer-creat

Cosla: Clojure tool for SLA metrics via JIRA Rest API

2017-09-04 Thread noahlz
Greetings, I've open sourced a command-line tool I wrote, in Clojure, for pulling SLA (service-level agreement) stats from JIRA using the JIRA Rest API. https://github.com/noahlz/cosla Given a JIRA instance, it can generate some CSV files reporting on the issues matching a JQL you provide, suc

A Failure To Understand lazy-seq

2017-09-04 Thread mrwizard82d1
I'm trying to understand infinite sequences. Wikipedia defines an implementation of the Fibonacci sequence as: (def fibs (cons 0 (cons 1 (lazy-seq (map +' fibs (rest fibs)) However, when I wrote fibs in the repl as: (def fibs (lazy-seq (cons 0 (cons 1 (map +' fibs (rest fibs)) executin