This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

## 2016-10-18

## Channels

- # aleph (59)
- # beginners (21)
- # bigdata (1)
- # boot (110)
- # cider (7)
- # clara (1)
- # cljs-dev (160)
- # cljsjs (3)
- # clojars (10)
- # clojure (122)
- # clojure-czech (2)
- # clojure-dusseldorf (5)
- # clojure-france (1)
- # clojure-italy (4)
- # clojure-korea (5)
- # clojure-russia (13)
- # clojure-spec (15)
- # clojure-uk (78)
- # clojurebridge (1)
- # clojurescript (196)
- # core-async (6)
- # core-logic (27)
- # cursive (11)
- # data-science (2)
- # datomic (45)
- # dirac (9)
- # emacs (2)
- # funcool (8)
- # hoplon (16)
- # immutant (13)
- # jobs (1)
- # klipse (11)
- # lein-figwheel (1)
- # leiningen (1)
- # off-topic (3)
- # om (40)
- # onyx (31)
- # pedestal (25)
- # re-frame (55)
- # ring (1)
- # ring-swagger (1)
- # rum (4)
- # specter (1)
- # sql (2)
- # untangled (30)
- # vim (12)
- # yada (12)

hi everyone, i’m using core.logic to help me implement http://mason.gmu.edu/~rhanson/equatalk.html

my problem is that i want the additional constraint that the numbers should form a roughly normal distribution

not sure if that gist link above is coming through right, but core.logic part starts at line 46

actually, let me ask another simpler question first: what’s a good way to sort a list of numbers in core.logic, or to find the median of them?

the logic stuff is sort of a combination of generators that generate possible matches and filters that reject things that don't match

so you'll end up generating all permutations of Y and rejecting the ones where your sorted relation doesn't hold