I want to keep a list of normalizing functions for a text. How do I store .toLowercase? I was thinking of something like this:
(def normalizing-functions (list remove-punctuations .toLowerCase))
It looks like your making a list of functions to apply to something on a regular basis. the java method is not quite a clojure function in this sense though its really easy to wrap it up just like you would if you where going to feed it to the map function.
#(. tolowercase %)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With