test.check generating hierarchy with relations

2014-12-07 Thread cig
Hi I would like to test a function which recursively traverses the nodes in a graph and collects them. For example, (def graph {1 [2 3 4] 2 [5 6 7] 6 [8 9] 10 [11 12 13]} my function is given a starting point say, 1 and should then traver

Re: core.async take behaviour

2014-09-04 Thread cig
second >> channel. >> >> There might be a better solution with transducers, though. (Or without.) >> >> On Wednesday, 3 September 2014, cig wrote: >> >>> Thanks Timothy, that makes sense. >>> >>> A follow on question if you don't

Re: core.async take behaviour

2014-09-02 Thread cig
ptember 2014 22:23:10 UTC+2, tbc++ wrote: > > It's because into is pulling items as fast as it can from take. Sure the > buffer might get full but then into takes another value allowing take to > continue. > > Timothy > > > On Tue, Sep 2, 2014 at 1:48 PM, ci

core.async take behaviour

2014-09-02 Thread cig
Hi I was expecting the following example to park, waiting for the 'out' channel to be cleared. Could anybody explain why 'take' does not park when the output buffer size is smaller than the number of entries being taken from the input channel? (def from (to-chan [1 2 3 4 5 6 7])) ( [1 2 3 4]

Re: clojure.test.check

2014-07-03 Thread cig
ssion > a multi-map was simply a map that can store multiple values in the same key. > > > Reid > > > On Thursday, July 3, 2014 6:06:29 AM UTC-5, cig wrote: >> >> Hi >> >> I have been trying to build a test.check generator for a multi map, >> witho

clojure.test.check

2014-07-03 Thread cig
Hi I have been trying to build a test.check generator for a multi map, without much success. I have a generator which generates ordinary maps: (def ord-gen (gen/fmap (partial zipmap [:port :instr :qty]) (gen/tuple (gen/not-empty gen/string-alpha-numeric) (ge

Re: Om: trouble with goog reference

2014-02-27 Thread cig
Hi David I tried changing :advanced mode to :whitespace mode. My index.html file looks as follows: http://fb.me/react-0.9.0.js";> my project.clj file looks as follows: (defproject om-ho "0.0.1-SNAPSHOT" :description "FIXME: write description" :url "http://example.c

how to turn on smartparens-strict-mode in emacs-live

2013-10-30 Thread cig
Where should I place the setting to turn on smartparens-strict-mode in emacs-live? Following this thread, https://github.com/Fuco1/smartparens/issues/158 I tried adding this to my own pack but that did not work, subsequently added it to the clojure-pack under the smartparents-conf.el but that

Re: core.logic CLP(Set)

2013-06-18 Thread cig
Hi David Did you not make use of it for solving this puzzle? https://gist.github.com/swannodette/5127150 On Tuesday, 18 June 2013 13:38:48 UTC+2, David Nolen wrote: > > CLP(Set) has not been implemented yet. > > > On Tue, Jun 18, 2013 at 2:36 AM, cig >wrote: > >>

core.logic CLP(Set)

2013-06-17 Thread cig
Is CLP(Set) for core.logic available for use? It does not seem like core.logic 0.8.3 contains this feature. How should I access it if it is available? -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@goo

Re: Clojure vs Scala - anecdote

2011-09-15 Thread cig
Impressive, wonder if they were running this on a single node or more widespread? In a wide spread environment I think Erlang would be the true winner, though it does not natively have macros :-( There is an implementation of Lisp for Erlang called LFE (lisp flavored Erlang) which I looked at, whic