In this guide, we will discuss Clojure Strings trimr. Removes whitespace from the right hand side of the string.
Syntax
Following is the syntax.
(trimr str)
Parameters β βstrβ is the input string.
Return Value β The string which has the white spaces removed from the end of the string.
Example
Following is an example of trimr in Clojure.
(ns clojure.examples.hello (:gen-class)) (defn hello-world [] (println (clojure.string/trimr " White spaces "))) (hello-world)
Output
The above program produces the following output.
White spaces
The above output will have the white spaces at the beginning of the string.
Next Topic : Click Here
Pingback: Clojure - Strings triml | Adglob Infosystem Pvt Ltd
Pingback: Clojure - Strings | Adglob Infosystem Pvt Ltd