mc #6903(2008/08/02 21:09 GMT) [ Common Lisp ] Rating1/1=1.00
1 2
(format()"~{~A~^ ~}"(mapcar(lambda(x)(string-capitalize x :end 1))(ppcre:split"\\s+""LL day and night"))) ;=> "LL Day And Night"
Rating1/1=1.00-0+
1 reply [ reply ]
mc
#6903()
[
Common Lisp
]
Rating1/1=1.00
最初の1文字だけ大文字というのなら標準でいくつか方法があるのですが…。
(format()"~{~A~^ ~}"(mapcar(lambda(x)(string-capitalize x :end 1))(ppcre:split"\\s+""LL day and night"))) ;=> "LL Day And Night"Rating1/1=1.00-0+
1 reply [ reply ]