99re热这里只有精品视频,7777色鬼xxxx欧美色妇,国产成人精品一区二三区在线观看,内射爽无广熟女亚洲,精品人妻av一区二区三区

Clojure Strings reverse

2018-12-21 14:09 更新

反轉(zhuǎn)字符串中的字符。

語(yǔ)法

以下是reverse的基本使用語(yǔ)法:

(reverse str)

參數(shù)? 'str'是需要反轉(zhuǎn)的字符串。

返回值 ? 反轉(zhuǎn)后的字符串。

下面是reverse函數(shù)的示例:

(ns clojure.examples.hello
   (:gen-class))
(defn hello-world []
   (println (reverse "Hello World")))
(hello-world)

輸出

以上示例將輸出以下結(jié)果:

(d l r o W   o l l e H)                             
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)