Re: core.logic matche with maps

2012-11-16 Thread David Nolen
On Thu, Nov 15, 2012 at 9:53 AM, MHOOO wrote: > Hello everybody, > > recently I was using the following pattern a lot, in order to get access > to a value inside a map: > > (defn map-geto* [m k v] > (matche [m] >([[[k v] . _]]) >([[_ . tail]] (map-geto* tail k

core.logic matche with maps

2012-11-15 Thread MHOOO
Hello everybody, recently I was using the following pattern a lot, in order to get access to a value inside a map: (defn map-geto* [m k v] (matche [m] ([[[k v] . _]]) ([[_ . tail]] (map-geto* tail k v I can use that like this: (run* [q] (map-geto* (seq {: