The value of :my-key (or the default, if :my-key doesn't exist) is being
bound to the symbol my-key, so all you need to do is this:
(defn my-function [{:keys [my-key] :or {my-key 5} :as params}]
* (str my-key value is my-key))*
On Friday, May 3, 2013 1:52:46 PM UTC-5, Ryan wrote:
Hello
I'm playing around with core.logic, and have this code so far:
https://gist.github.com/3981557
There are 2 people and 3 tasks. Each task has a start time (you can't start
the task until this time or later), and end time (you must finish the task
by this time), and a duration (how long it takes
On Tuesday, October 30, 2012 6:48:28 PM UTC-5, David Nolen wrote:
On Tue, Oct 30, 2012 at 1:11 PM, Anthony Rosequist
anthony@gmail.comjavascript:
wrote:
I'm playing around with core.logic, and have this code so far:
https://gist.github.com/3981557
It might help to understand
On Tuesday, October 30, 2012 9:26:25 PM UTC-5, David Nolen wrote:
Even so I don't really understand the time conditions you've described at
all. Can you please clarify or draw a simple picture with text what results
you are expecting? I'm a bit confused by your task facts in particular, for
I updated my gist with a solution that's working:
https://gist.github.com/3981557
Unfortunately, I had to copy my conde expression 3 times (to cover all
combinations of the three tasks). So, what I really need to know is if
there's a way for me to write those three condes as one goal that
I love Anthony Grimes's (et al) findfn https://github.com/Raynes/findfn
library,
but it requires some local setup (mainly the JVM security config for
clojail), so I decided to host it on Heroku.
Features:
- Access to findfn from any computer with no setup.
- If your function has two
Whoops, forgot the link. It's http://findfn.herokuapp.com/
Since there's only one dyno, the initial load time might take a while.
On Saturday, December 29, 2012 6:51:55 PM UTC-6, Anthony Rosequist wrote:
I love Anthony Grimes's (et al) findfn https://github.com/Raynes/findfn
library