What is the best way to remove the duplication in these two functions?:
(defn- next-day-of-week-in-future [day-num]
(find-first #(= day-num (.. % dayOfWeek get)) (today+all-future-dates)))
(defn- next-day-of-month-in-future [day-of-month]
(find-first #(= day-of-month (.. % dayOfMonth get))
On Fri, Jun 17, 2011 at 7:32 PM, Alex Baranosky
alexander.barano...@gmail.com wrote:
What is the best way to remove the duplication in these two functions?:
(defn- next-day-of-week-in-future [day-num]
(find-first #(= day-num (.. % dayOfWeek get)) (today+all-future-dates)))
(defn-
Awesome!
I am still really a beginner with macros. I had tried to get one to work,
but wasn't sure if it was possible. Thanks!
On Fri, Jun 17, 2011 at 8:59 PM, Ken Wesson kwess...@gmail.com wrote:
On Fri, Jun 17, 2011 at 7:32 PM, Alex Baranosky
alexander.barano...@gmail.com wrote:
What is