Changes for clojure.core/partial

mmwaikar on Fri, 08 Jul 2011
user=> (def hundred-times (partial * 100))
#'user/hundred-times

user=> (hundred-times 5)
500

user=> (hundred-times 4 5 6)
12000

user=> (def add-hundred (partial + 100))
#'user/add-hundred

user=> (add-hundred 5)
105
zkim on Sun, 26 Sep 2010
user=> (def hundred-times (partial * 100))
#'user/hundred-times

user=> (hundred-times 5)
500

user=> (def add-hundred (partial + 100))
#'user/add-hundred

user=> (add-hundred 5)
105
nipra on Tue, 13 Jul 2010
user> (def hundred-times (partial * 100))
#'user/hundred-times
user> (hundred-times 5)
500
user> (def add-hundred (partial + 100))
#'user/add-hundred
user> (add-hundred 5)
105
user> 
nipra on Tue, 13 Jul 2010
user> (require '[clojure.contrib.pprint :as p])
nil
user> (def to-english (partial p/cl-format nil "~@(~@[~R~]~^ ~A.~)"))
#'user/to-english
user> (to-english 1234567890)
"One billion, two hundred thirty-four million, five hundred sixty-seven thousand, eight hundred ninety"
user>