Re: Preferred business rules engines in or used by Clojure?

2012-10-07 Thread Leandro Oliveira
https://github.com/hraberg/mimir The author call it experimenta, but seems nice. [ ]s Leandro. On Sun, Oct 7, 2012 at 8:33 PM, Stuart Sierra wrote: > Hi Grant, > > I am not aware of a rules engine written in Clojure, unless you are > willing to consider a logic language like Datalog (Datomic) o

Re: load namespace programmatically

2012-06-09 Thread Leandro Oliveira
Yes. Thank you Andy. [ ]s Leandro. On Fri, Jun 8, 2012 at 10:18 PM, Andy Fingerhut wrote: > Does this do what you want? > > (defn require-from-string [s] > (require (symbol s))) > > Andy > > On Jun 8, 2012, at 5:37 PM, Leandro Oliveira wrote: > > > Hi, > >

load namespace programmatically

2012-06-08 Thread Leandro Oliveira
Hi, What is the best way to implement require-from-string? Ex: # require-from-string words like require but accepts namespaces as strings. (def namespace-from-user (ask-user)) (require-from-string namespace-from-user) # now the namespace chosen by user is loaded. Best regards [ ]s Leandro

Re: removing a hash-map from a set using hash-map's field.

2012-03-23 Thread Leandro Oliveira
e > case > > here. > > > > If you have > > > > {1 {:id 1, :foo "bar"}, > > > > > > 2 {:id 2, :foo "car"}} > > > > You can just do > > > > (disj my-map 2) > > > > To convert the original set into a m

removing a hash-map from a set using hash-map's field.

2012-03-22 Thread Leandro Oliveira
Hi all, I have a set of hash like this: #{{:id 1, :foo "bar"} {:id 2, :foo "car"}} and I'd like to remove an item based on its id value. Unfortunately, disj requires that I pass the whole map as key to remove it. Can I remove the map from the set only using the id? My intention is to avoid