Nick Smith
07/13/2019, 10:31 AMAdrian Sieber
07/13/2019, 12:07 PMKonrad Hinsen
07/13/2019, 12:35 PMPrathyush
07/13/2019, 3:04 PMshalabh
07/13/2019, 3:40 PMshalabh
07/13/2019, 3:46 PMwtaysom
07/13/2019, 5:58 PMNick Smith
07/14/2019, 4:53 AMNick Smith
07/14/2019, 5:22 AMyairchu
07/14/2019, 7:35 AMNick Smith
07/14/2019, 9:53 AMNick Smith
07/14/2019, 10:44 AMPrathyush
07/14/2019, 11:11 AMNick Smith
07/14/2019, 11:12 AMyairchu
07/14/2019, 11:55 AMDrewverlee
07/14/2019, 9:42 PM"a function named f with parameters x and y", whereas the function named g that you intend to pass as an argument has parameters a and b, so then you have to make a wrapper function around itWhy do you need to make a wrapper?
Drewverlee
07/14/2019, 9:55 PM(defn foo [{:keys [f m]}] (f m))
(defn g [{:keys [a b]}] [a b])
(foo {:f g
:m {:a 1 :b 2}})
;; => [1 2]
Drewverlee
07/14/2019, 10:00 PM{f g :m ...
a wrapper?Drewverlee
07/14/2019, 10:03 PMDrewverlee
07/14/2019, 10:04 PMyairchu
07/15/2019, 6:28 AMDrewverlee
07/15/2019, 12:09 PMyairchu
07/15/2019, 12:13 PMDrewverlee
07/15/2019, 12:21 PMyairchu
07/15/2019, 12:21 PMDrewverlee
07/15/2019, 12:28 PMAlan Johnson
07/21/2019, 5:20 PM