topic-fn returning more than one topic

2017-07-02 Thread Oded Badt
Given a core.async pub-sub setting (or something equivalent) Can anyone suggest an alternative to pub sub, or some tweak I may not be thinking of for a topic-fn to be able to communicate to the pub that a given message should be published to subscribers of more than one topic? Thanks! Oded

In what sense does "coll-of" not flow conformed values?

2016-06-15 Thread Oded Badt
>From https://clojure.org/guides/spec#_collections: *One important aspect of coll-of and map-of is that they both sample their inputs, checking only a subset of the values for performance reasons. Due to this, conform of these specs does not flow conformed values (because they are not all

Clojurescript NS question

2012-05-15 Thread Oded Badt
In: https://github.com/clojure/clojurescript/wiki/Differences-from-Clojure It is written than: You must use the :as form of :require Does this basically mean there is no natural way to write a set of functions and import them globally (with no namespace prefix)? For example I would like

Re: Clojurescript NS question

2012-05-15 Thread Oded Badt
Sorry, meant to quote: :use is not supported On Wednesday, May 16, 2012 8:36:24 AM UTC+3, Oded Badt wrote: In: https://github.com/clojure/clojurescript/wiki/Differences-from-Clojure It is written than: You must use the :as form of :require Does this basically mean

sorted-set

2011-08-06 Thread Oded Badt
Trying to migrate some of my code from clojure and javascript to ClojureScript and I'm missing 'sorted-set' Does anyone know if is is one of those parts of the library that has just not yet been migrated? Or will not at all be migrated? Or maybe I'm getting something wrong and its usage is not

Re: Discovering a function's closure

2011-07-10 Thread Oded Badt
.. This would not be possible if you defined a function at the repl .. this will not possible.. Sunil On Thu, Jul 7, 2011 at 2:16 PM, Oded Badt odedb...@gmail.com wrote: Thanks, the command you wrote indeed works, but I cant get it to work for just 'some' function I defined in the repl

Re: Discovering a function's closure

2011-07-07 Thread Oded Badt
 am, Oded Badt odedb...@gmail.com wrote: Hey, Does anyone know of a way, given a function, to discover it's closure programatically? I often find myself holding a pointer to such a function that only when knowing to what values it is bound to one can tell what it actually does

Discovering a function's closure

2011-07-02 Thread Oded Badt
Hey, Does anyone know of a way, given a function, to discover it's closure programatically? I often find myself holding a pointer to such a function that only when knowing to what values it is bound to one can tell what it actually does. So it can be very helpful to be able to query the runtime