2010-01-13から1日間の記事一覧
いきなり困った!デフォじゃなさそう http://rosettacode.org/wiki/Repeating_a_string#Common_Lispここのを利用します。 (defun repeat-string (n string) (with-output-to-string (stream) (loop repeat n do (write-string string stream)))) (princ (repe…
文字列の連結はconcatenateが使えます。 (concatenate 'string "hoge" "fuga") "hogefuga"
ちょっと自分でプログラム書く場面で一々Hyperspecとかgoogle先生に聞くのが嫌になってきたので、Lispの文字列処理についてまとめていこうと思います。何が必要かっていうのの参考になりそうなものとして多言語の逆引き辞典的なものが参考になると思ってRuby…