3 ms·
Just a question of personal taste but I'd have the conditions as functions and have search return a list if I was using clojure... (braintree/search (st
by papaf 16y ago
Just a question of personal taste but I'd have the conditions as functions and have search return a list if I was using clojure...
(braintree/search
(starts-with :order-id "a2d")
(ends-with :customer-website ".com")
(equals :billing-first-name "John")
(one-of :status [:authorised :settled])
(between :amount 10 20))
The cool thing being that both styles are possible in a lisp.