从字符串的右侧删除空格。
以下是语法。
(trimr str)
参数 - 'str'是输入字符串。
返回值 - 从字符串末尾除去空格的字符串。
(ns clojure.examples.hello (:gen-class)) (defn hello-Learnfk [] (println (clojure.string/trimr " White spaces "))) (hello-Learnfk)
上面的程序产生以下输出。
链接:https://www.learnfk.comhttps://www.learnfk.com/clojure/clojure-strings-trimr.html
来源:LearnFk无涯教程网
White spaces
上面的输出在字符串的开头将有空格。
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)