Comment detail

文字変換表に基く文字列の変換 (Nested Flatten)

とりあえず (1) で。文字列には sublis が使えないのでこんなところでしょうか。

1
2
3
4
5
(defun tr (from to string)
  (map 'string (lambda (c)
                 (or (some (lambda (x y) (and (char= x c) y)) from to)
                     c))
       string))

Index

Feed

Other

Link

Pathtraq

loading...