Clojure – Strings lower-case

Clojure strings lower-case

In this guide, we will discuss Clojure Strings lower-case. Converts string to all lower-case.

Syntax

Following is the syntax.

(lower-case s)

Parameters āˆ’ Where ā€˜sā€™ is the string to be converted.

Return Value āˆ’ The string in lowercase.

Example

Following is an example of lower-case in Clojure.

(ns clojure.examples.hello
   (:gen-class))
(defn hello-world []
   (println (clojure.string/lower-case "HelloWorld"))
   (println (clojure.string/lower-case "HELLOWORLD")))
(hello-world)

Output

The above program produces the following output.

helloworld
helloworld

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply