目录

lower-case

将字符串转换为全小写。

语法 (Syntax)

以下是语法。

(lower-case s)

Parameters - 其中's'是要转换的字符串。

Return Value - 小写的字符串。

例子 (Example)

以下是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)

上述程序产生以下输出。

helloworld
helloworld
↑回到顶部↑
WIKI教程 @2018